开发者

subplot titles in R

开发者 https://www.devze.com 2023-04-08 17:05 出处:网络
I\'m new in R. I have created 9x3 subplots using par(mfrow= c(3,3)) command using a simple loop and plotted scatter plot for pair-wise dependent variable. Now I want to

I'm new in R. I have created 9x3 subplots using par(mfrow= c(3,3)) command using a simple loop and plotted scatter plot for pair-wise dependent variable. Now I want to have sub titles through (a-c) for 1st row; (d-f) for 2nd row & (g-i) for the last. Using "sub" 开发者_如何转开发command I could get (a-c) for 1st row but unable to get (d-f) for 2nd row & successively. Can anybody let me know in what way I can do so?


Each plot call can create its own title using the main= assignment. The tricky step is getting a "master title". For that you will probably want to use mtext. Well OK, I suppose there may be some tricks to getting the subtitles you want with R "expressions", but that would be better illustrated if you offer a dataset and code than discussing in the abstract.

0

精彩评论

暂无评论...
验证码 换一张
取 消