a
a
The par function permits to give parameters to custom your graph.
The mfrow arguments permits to split the window in several parts.
You create x lines and y columns by asking mfrow=c(x,y).
See the code below !
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#Create data a=seq(1,29)+4*runif(29,0.4) b=seq(1,29)^2+runif(29,0.98) #Divide the screen in 2 columns and 2 lines par(mfrow=c(2,2)) #Add a plot in each sub-screen ! plot( a,b , pch=20) plot(a-b , pch=18) hist(a, border=F , col=rgb(0.2,0.2,0.8,0.7) , main="") boxplot(a , col="grey" , xlab="a") |
Not what you are looking for ? Make a new search !
[mediatagger]
Leave a Reply
Be the First to Comment!