search for: kids_data_2017

Displaying 1 result from an estimated 1 matches for "kids_data_2017".

2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
..., level = 1) # download map level with provinces tract <- fortify(can_map, region = "NAME_1") # transforms data from shapefiles into a dataframe that ggplot can understand, from http://www.kevjohnson.org/making-maps-in-r/ # create subsets of the kcj data if needed, for example by year kids_data_2017 <- subset(kids_data, year == 2017) # data for the year 2017 kids_data_2018 <- subset(kids_data, year == 2018) # data for the year 2018 # extract the needed data kids_province_data <- data.table::data.table(kids_data_2017$Province_Territory__c, kids_data_2017$Number_of_kids__c) names(kids_...