Project_651

Author

Vikas Reddy Bodireddy

Project

library(pacman)
p_load("tidyverse", "broom", "coefplot", "cowplot",
                 "gapminder", "GGally", "ggrepel", "ggridges", "gridExtra",
                 "here", "interplot", "margins", "maps", "mapproj",
                 "mapdata", "MASS", "quantreg", "rlang", "scales",
                 "survey", "srvyr", "viridis", "viridisLite", "devtools", "socviz", "statebins")
data_source<- read.csv("/Users/vikasreddybodireddy/Desktop/Stat 651/project/California All employees 2010 to 2023.csv",header = TRUE)

state_plot <- ggplot(data_source,aes(state=Region.Name,fill=X2010.10.01)) +
geom_statebins() +
  theme_statebins(legend_position = "top") +
theme(plot.title=element_text(size=20, hjust=0)) 
theme(plot.margin = margin(30,30,25,25))
List of 1
 $ plot.margin: 'margin' num [1:4] 30points 30points 25points 25points
  ..- attr(*, "unit")= int 8
 - attr(*, "class")= chr [1:2] "theme" "gg"
 - attr(*, "complete")= logi FALSE
 - attr(*, "validate")= logi TRUE
state_plot+ggtitle("2010 All Employees: \nTotal Nonfarm in California From October")

Interpret: Above plot shows total number of all employees with non farm by state in year 2010 october and the color coded label shows the states with less number of employees to high number of employees. with each state name as sate code.

state_plot_2 <- ggplot(data_source,aes(state=Region.Name,fill=X2023.10.01)) +
geom_statebins() +
  theme_statebins(legend_position = "top") +
theme(plot.title=element_text(size=20, hjust=0)) +
theme(plot.margin = margin(30,30,30,30))
state_plot_2+
  ggtitle("2023 All Employees: \nTotal Nonfarm in California Till October")

Interpret: Above plot shows total number of all employees with non farm by state in year 2023 october and the color coded label shows the states with less number of employees to high number of employees. with each state name as state Code.