[1] "Any person below the age of 14 years is defined as a child, and child labor is a way of exploitation of these children by giving them work that deprives them of their childhood, dignity and potential and harms their physically and mentally. When the work hinders their schooling or forces them to leave schooling early or they are forced to work for long hours along with schooling."
'data.frame': 20 obs. of 9 variables:
$ Category.of.States : chr "Non Special Category states" "Non Special Category states" "Non Special Category states" "Non Special Category states" ...
$ States : chr "Andhra Pradesh" "Assam" "Bihar" "Chhattisgarh" ...
$ Agriculture : num 69 69.3 71.8 87.9 0 76.7 65.6 65.3 82.6 19.2 ...
$ Manufacturing : num 9.7 8.4 11.2 2.4 11.1 2.6 3.8 14.6 9.3 32.8 ...
$ Construction : num 3.2 1.8 0 0.9 0 0.3 7 4.3 1.2 0 ...
$ Trade.Hotels...Restaurants : num 9 7.8 15.5 7.2 57.8 17.8 8.1 12.1 5.7 32 ...
$ Community..Social.and.Personal.Services: num 7.1 11 1.1 1.7 31.1 1.5 15.5 2.8 0.3 16.1 ...
$ Others : num 2 1.8 0.5 0 0 1.2 0 0.9 0.9 0 ...
$ Total : int 100 100 100 100 100 100 100 100 100 100 ...
Category.of.States States Agriculture Manufacturing
Length:20 Length:20 Min. : 0.00 Min. : 0.00
Class :character Class :character 1st Qu.:64.28 1st Qu.: 5.15
Mode :character Mode :character Median :70.55 Median : 9.80
Mean :64.66 Mean :13.96
3rd Qu.:81.17 3rd Qu.:15.30
Max. :87.90 Max. :44.60
Construction Trade.Hotels...Restaurants
Min. :0.000 Min. : 3.300
1st Qu.:0.375 1st Qu.: 6.475
Median :1.650 Median : 7.950
Mean :2.215 Mean :12.100
3rd Qu.:3.300 3rd Qu.:10.300
Max. :7.000 Max. :57.800
Community..Social.and.Personal.Services Others Total
Min. : 0.000 Min. :0.000 Min. :100
1st Qu.: 1.250 1st Qu.:0.000 1st Qu.:100
Median : 2.750 Median :1.050 Median :100
Mean : 5.980 Mean :1.105 Mean :100
3rd Qu.: 7.425 3rd Qu.:1.800 3rd Qu.:100
Max. :31.100 Max. :4.000 Max. :100
[1] "Non Special Category states" "Special Category States"
percentage total from all states(Child labour in Agriculture )
percentage total from all states(Child labour in manufacturing )
percentage total from all states(Child labour in construction )
[1] "From all of these studies, it is seen that the number of child labour is highest in agricultural sector. The next highest is from manufacturing sector, followed by trade, hotels and restaurants"
---
title: "CHILD LABOUR DATA SET"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: scroll
social: menu
theme: cerulean
storyboard: True
source_code: embed
---
```{r setup, include=FALSE}
library(flexdashboard)
library(MASS)
library(lattice)
library(DT)
data=read.csv(file.choose(" "))
attach(data)
```
# HOME {data-width=650}
### introduction to child labour
```{r}
"Any person below the age of 14 years is defined as a child, and child labor is a way of exploitation of these children by giving them work that deprives them of their childhood, dignity and potential and harms their physically and mentally. When the work hinders their schooling or forces them to leave schooling early or they are forced to work for long hours along with schooling."
str(data)
```
### Summary
```{r}
summary(data)
```
### unique rows in category of states
```{r}
unique(data$Category.of.States)
```
# HISTOGRAMS{.tabset}
### Agriculture Histogram
```{r}
histogram(~data$Agriculture, col='yellow', ylab = "frequency", xlab = "child labour in agriculture")
```
### Construction Histogram
```{r}
histogram(~data$Construction, col='blue', ylab = "frequency", xlab = "child labour in construction")
```
### Manufacturing Histogram
```{r}
histogram(~data$Manufacturing, col='red', ylab = "frequency", xlab = "child labour in Manufacturing")
```
### Trade Hotels & Restaurants Histogram
```{r}
histogram(~data$Trade.Hotels...Restaurants, col='brown', ylab = "frequency", xlab = "child labour in Trade Hotels & Restaurants")
```
### Others
```{r}
histogram(~data$Others, col='pink', ylab = "frequency", xlab = "child labour in other sectors")
```
### state_wise distribution of child labour in agricluture sector
```{r}
library(lattice)
histogram(~Agriculture|States, data=data, breaks= 20, col=c(1,2))
```
# BOXPLOT{.tabset}
### BOXPLOT FOR CHILD LABOUR IN AGRICULTURAL SECTOR
```{r}
boxplot(Agriculture~Total, data= data, col='green', xlim=c(0,2), main= "BOXPLOT FOR CHILD LABOUR IN AGRICULTURAL SECTOR")
```
# ASSOCIATION{.tabset}
### SCATTERPLOT FOR CHILD LABOUR IN AGRICULTURAL SECTOR AND TOTAL IN EACH STATES
```{r}
library(ggplot2)
ggplot(data)+geom_point(mapping= aes(x=Agriculture, y=Total, color= States)) +ggtitle(label= "ASSOCIATION OF CHILD LABOUR IN AGRICULTURAL SECTOR AND TOTAL")
```
# CONCLUSION {data-width=350}
### Agriculture
```{r}
value=sum(data$Agriculture)
valueBox("percentage total from all states(Child labour in Agriculture )",value,icon="fa fa-user")
```
### Manufacturing
```{r}
value=sum(data$Manufacturing)
valueBox("percentage total from all states(Child labour in manufacturing )",value,icon="fa fa-user")
```
### Trade Hotels & Restaurants
```{r}
value=sum(data$Trade.Hotels...Restaurants)
valueBox("percentage total from all states(Child labour in construction )",value,icon="fa fa-user")
```
### inference
```{r}
"From all of these studies, it is seen that the number of child labour is highest in agricultural sector. The next highest is from manufacturing sector, followed by trade, hotels and restaurants"
```
# DATASET{data-width=350}
### download dataset
```{r}
datatable(data,extensions="Buttons", options=list(dom="Bfrtip",buttons= c('copy','print','pdf','csv')))
```