Skip to content
Prev 351422 / 398502 Next

metagen - plotStudySizes: order by year and not alphabetical

Adding a bit of formatting
Where your data is dat1


dat1$reference  <- factor(dat1$reference, levels = dat1$reference[order(dat1$year)])
pp2 <-  ggplot(dat1, aes( reference, size)) + geom_bar( stat = "identity") + coord_flip()
 pp2   <- pp2 + ggtitle("Studies with Cross-sectional estimates") + 
         xlab("") + ylab("Total Number of Subjects")
pp2

John Kane
Kingston ON Canada
____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.