I can create plots of two groups in one window but I don't know how to combine two plots in one frame with same x and y axis lines. The example is as same as the linked image. I would be grateful if someone can help me to do this with R.
Try, using cbind
function
boxplot(cbind(boxplot1, boxplot2))
This will display the two boxplots
in same frame with combined x and y axes.
Example:
plot(x,y)
par(new=TRUE)
plot(x,y)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.