Re: [R] dotchart and dotplot(lattice) plot with two/three conditioning variables

2024-09-04 Thread Deepayan Sarkar
For lattice::dotplot(), you are close; this is more like the layout you want: dotplot(Year ~ ptile | reorder(Population, ptile, mean), testLong, groups = c("0-50", "50-90", "90-100")[time], layout = c(1, NA), par.settings = simpleTheme(pch = 16), auto.key = TRUE) dotchart(

[R] dotchart and dotplot(lattice) plot with two/three conditioning variables

2024-09-04 Thread Anupam Tyagi
Hello, I am trying to make a Cleaveland Dotplot with two, if possible three, variables on the vertical axis. I was able to do it in Stata with two variables, Year and Population (see graph at the link: https://drive.google.com/file/d/1SiIfmmqk6IFa_OI5i26Ux1ZxkN2oek-o/view?usp=sharing ). I hope the