I am having trouble getting data labels to display over the provinces in a GADM
map of Canada.
Specifically, I need the variable "Number" from the data set "by_province",
grouped by "region", to appear on the corresponding regions of the map.
The data set "by_province" looks like this:
long
ot;city n y
> mon 100 200
> tor 209 300
> edm 98 87
> mon 20 76
> tor 50 96
> edm 62 27
> ", header = TRUE )
>
> dta2 <- ( dta
> %>% group_by( city )
> %>% summarise( n = sum( n )
> , y = sum( y )
> )
>
I am trying to create a barplot displaying the sums of 2 columns of data
grouped by a variable. the data is set up like this:
"city" "n" "y"
mon 100 200
tor 209 300
edm 98 87
mon 20 76
tor 50 96
edm 62 27
the resulting plot should have city as the x-axis, 2 bars per city, 1
representing
Hi i need help
with this data set
http://books.google.com.au/books?id=vWu-MJM_obsC&pg=PA62&dq=M345+statistical+methods+unit+13#PPA62,M1
what grouping methods could i use?
--
View this message in context:
http://www.nabble.com/Grouping-methods-tp23715866p23715866.html
Sent from the R help mailin
4 matches
Mail list logo