Home

Description

This data set is taken from data.gov.in. This data is about Crop-Wise All India Mandi Arrivals Of Top Ten Crops From 2016-17 To 2020-21 which was published by Ministry Of Agriculture And Farmers Welfare.

EDA

      Year        Sugarcane              Rice              Wheat         
 Min.   :2016   Min.   :114680000   Min.   : 2647049   Min.   : 3916956  
 1st Qu.:2017   1st Qu.:191956000   1st Qu.: 5701377   1st Qu.:20680330  
 Median :2018   Median :252332000   Median : 5849534   Median :25935820  
 Mean   :2018   Mean   :234110000   Mean   :18952214   Mean   :22738533  
 3rd Qu.:2019   3rd Qu.:301347000   3rd Qu.:38844321   3rd Qu.:29831859  
 Max.   :2020   Max.   :310235000   Max.   :41718787   Max.   :33327698  
     Potato             Maize             Onion              Tomato       
 Min.   : 3824547   Min.   :2647049   Min.   : 6124163   Min.   :2121092  
 1st Qu.: 9607420   1st Qu.:5289598   1st Qu.:11018499   1st Qu.:3263651  
 Median :11551426   Median :5701377   Median :12679362   Median :3401006  
 Mean   : 9900506   Mean   :5265321   Mean   :11311104   Mean   :3202680  
 3rd Qu.:11794097   3rd Qu.:5849534   3rd Qu.:12904494   3rd Qu.:3585759  
 Max.   :12725042   Max.   :6839047   Max.   :13829004   Max.   :3641893  
      Gram            Soyabean           Bajra        
 Min.   : 686486   Min.   :3423226   Min.   : 617328  
 1st Qu.:1972020   1st Qu.:5436252   1st Qu.:1015386  
 Median :2232522   Median :5501157   Median :1283282  
 Mean   :2442418   Mean   :5556581   Mean   :1152284  
 3rd Qu.:3376202   3rd Qu.:6084102   3rd Qu.:1340795  
 Max.   :3944861   Max.   :7338166   Max.   :1504627  
'data.frame':   5 obs. of  11 variables:
 $ Year     : int  2016 2017 2018 2019 2020
 $ Sugarcane: int  191956000 301347000 310235000 252332000 114680000
 $ Rice     : int  38844321 41718787 5849534 5701377 2647049
 $ Wheat    : int  29831859 33327698 25935820 20680330 3916956
 $ Potato   : int  11794097 12725042 11551426 9607420 3824547
 $ Maize    : int  5289598 6839047 5849534 5701377 2647049
 $ Onion    : int  12904494 12679362 13829004 11018499 6124163
 $ Tomato   : int  3641893 3401006 3585759 3263651 2121092
 $ Gram     : int  1972020 3944861 3376202 2232522 686486
 $ Soyabean : int  5501157 6084102 7338166 5436252 3423226
 $ Bajra    : int  1283282 1504627 1015386 1340795 617328

Histogram

Histogram

Sugarcane

Rice

Wheat

Potato

Maize

Onion

Tomato

Gram

Soyabean

Bajra

Boxplot

Boxplot

Sugarcane

Rice

Wheat

Potato

Maize

Onion

Tomato

Gram

Soyabean

Bajra

Download

---
title: "Crop Arrival"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
    social: menu
    theme: united
    source_code: embed
    storyboard: TRUE
---

```{r setup, include=FALSE}
library(flexdashboard)
libraries= c("flexdashboard","lattice","DT")
lapply(libraries,require,character.only=TRUE)
data=read.csv("D:/BU/Sem 2/R/crop.csv",header = TRUE)
attach(data)
```

# Home


### Description
This data set is taken from data.gov.in.
This data is about Crop-Wise All India Mandi Arrivals Of Top Ten Crops From 2016-17 To 2020-21
which was published by Ministry Of Agriculture And Farmers Welfare.



# EDA
```{r}
summary(data)
str(data)
Year=as.factor(Year)
```

# Histogram

## Histogram{.tabset}

### Sugarcane
```{r}
histogram(~Sugarcane|Year,breaks=50,main="Sugarcane")
```

### Rice
```{r}
histogram(~Rice|Year,breaks=50,main="Rice")
```

### Wheat
```{r}
histogram(~Wheat|Year,breaks=50,main="Wheat")


```

### Potato
```{r}
histogram(~Potato|Year,breaks=50,main="Potato")
```

### Maize
```{r}
histogram(~Maize|Year,breaks=50,main="Maize")
```

### Onion
```{r}
histogram(~Onion|Year,breaks=50,main="Onion")
```

### Tomato
```{r}
histogram(~Tomato|Year,breaks=50,main="Tomato")

```

### Gram
```{r}
histogram(~Gram|Year,breaks=50,main="Gram")

```

### Soyabean
```{r}
histogram(~Soyabean|Year,breaks=50,main="Soyabean")
```


### Bajra
```{r}
histogram(~Bajra|Year,breaks=50,main="Bajra")

```




# Boxplot

## Boxplot {.tabset}


### Sugarcane
```{r}
boxplot(Sugarcane~Year,main="Sugarcane")
```

### Rice 
```{r}
boxplot(Rice ~Year,main="Rice ")
```

### Wheat 
```{r}
boxplot(Wheat ~Year,main="Wheat ")
```

### Potato
```{r}
boxplot(Potato~Year,main="Potato")
```

### Maize
```{r}
boxplot(Maize~Year,main="Maize")
```

### Onion
```{r}
boxplot(Onion~Year,main="Onion")
```

### Tomato
```{r}
boxplot(Tomato~Year,main="Tomato")
```

### Gram
```{r}
boxplot(Gram~Year,main="Gram")
```

### Soyabean
```{r}
boxplot(Soyabean~Year,main="Soyabean")
```

### Bajra 
```{r}
boxplot(Bajra ~Year,main="Bajra ")
```


# Download {.tabset}

```{r}


datatable(data,extensions='Buttons',options=list(dom="Bftrip",buttons=c('copy','print','csv','pdf')))
```