[R] Make Multiple plots in R
Kiplimo, Jusper (ILRI)
J.Kiplimo at cgiar.org
Thu Oct 31 12:09:09 CET 2013
Dear All,
I would wish to make multiple plots and give title/ headings same time, is there a simpler/ tidier way compared to below(, especially the headings as they are missing)? See output attached.
#####################################Making multiple Plots start########################
plot(mybrick9, y = 2, col = terrain.colors( length(seq(0,1, by = .2))-1),breaks= seq(0, 1, by = 0.2), axes = T,
main = 'April 2006',
xlab = 'Longitude', ylab = 'Latitude',
cex.lab = 1, cex.axis = 1 )
plot(mymap3, add = T)
plot(mybrick9, y = 5, col = terrain.colors( length(seq(0,1, by = .2))-1),breaks= seq(0, 1, by = 0.2), axes = T,
main = 'May 2006',
xlab = 'Longitude', ylab = 'Latitude',
cex.lab = 1, cex.axis = 1 )
plot(mymap3, add = T)
plot(mybrick9, y = 8, col = terrain.colors( length(seq(0,1, by = .2))-1),breaks= seq(0, 1, by = 0.2), axes = T,
main = 'June 2006',
xlab = 'Longitude', ylab = 'Latitude',
cex.lab = 1, cex.axis = 1 )
plot(mymap3, add = T)
plot(mybrick9, y = 11, col = terrain.colors( length(seq(0,1, by = .2))-1),breaks= seq(0, 1, by = 0.2), axes = T,
main = 'July 2006',
xlab = 'Longitude', ylab = 'Latitude',
cex.lab = 1, cex.axis = 1 )
plot(mymap3, add = T)
#####################################Making multiple Plots end########################
Regards,
Jusper
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndviAprilJuly2006.png
Type: image/png
Size: 54145 bytes
Desc: ndviAprilJuly2006.png
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131031/76123b61/attachment.png>
More information about the R-help
mailing list