'data.frame': 11 obs. of 10 variables:
$ Year : int 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 ...
$ Two.wheelers : int 38556026 41581058 47519489 51921973 58799702 64743126 69128762 75336026 82402105 91597791 ...
$ Light.Motor.Vehicles.Passengers.: int 1777130 1878261 2113781 2167324 2337264 2492726 2697449 2903821 3146619 3615086 ...
$ Jeeps : int 1126148 1177245 1180057 1282113 1307926 1376744 1460364 1547825 1638975 1760428 ...
$ Cars : int 5297219 5748036 6594166 7267174 8072650 9109855 10146468 11200142 12365806 13749406 ...
$ Taxis : int 634357 688204 825416 901889 939738 1039845 1042347 1201862 1307805 3615086 ...
$ Buses..b. : int 633900 635006 720696 767593 678521 762341 1098422 1156568 1205793 176642 ...
$ Goods.vehicles..1. : int 2948300 2973740 3491637 3748484 3877622 4274984 5118880 5600938 6040924 6431926 ...
$ Miscellaneous..2. : int 4017946 4242787 4562042 4661385 5488296 5818646 6014568 6405672 6843006 7552876 ...
$ Total.no..of.vehicles : int 54991026 58924337 67007284 72717935 81501719 89618267 96707260 105353854 114951033 127745972 ...
count(cars)
---
title: "Yearly Vehicle Data"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
theme: cosmo
social: menu
story_board: True
source_code: embed
---
```{r setup, include=FALSE}
libraries=c("flexdashboard","MASS","lattice","DT")
lapply(libraries,require,character.only=TRUE)
data=read.csv(file.choose(""))
attach(data)
```
# Home {.tabset}
### Structure
---------------------------------------------------------------------------
```{r}
str(data)
```
# Histogram {.tabset}
### Year Histogram
---------------------------------------------------------------------------
```{r}
vehicle=as.integer(as.factor(Year))
hist(vehicle,col="darkslategray")
```
column{data-width=100}
---------------------------------------------------------------------------
### Histogram 2
---------------------------------------------------------------------------
```{r}
histogram(~Two.wheelers|Total.no..of.vehicles,col="cornflowerblue",main="Vehicle Data")
```
column{data-width=100}
---------------------------------------------------------------------------
### Histogram 3
---------------------------------------------------------------------------
```{r}
histogram(~Taxis|Cars,col="aqua",main="Vehicle Data")
```
# BoxPlot {.tabset}
### Boxplot
---------------------------------------------------------------------------
```{r}
boxplot(Year~Cars,col="cyan",main="Vehicle Data in BoxPlot",xlim=c(0,13),las=1)
```
### Boxplot 2
---------------------------------------------------------------------------
```{r}
boxplot(Taxis~Total.no..of.vehicles, col="wheat",main="plot 2",xlim=c(0,13),las=1)
```
# Download {.tabset}
### Chart E
```{r}
value=sum(Cars)
valueBox("count(cars)",value,icon="fa fa-user")
```
### Download
```{r}
datatable(data,extensions="Buttons",options=list(dom="Bftrip",buttons=c("copy","print","pdf","csv")))
```