Hi Duncan and Jim,
Yes, definitely you are right. I should comment the third par().
par(mfrow=c(1,2))
stn_all<-matrix(400*rnorm(20)+4,ncol=2)
par(mar=c(4,4,2,1.2),oma = c(1, 1, 1, 1),xaxs="i", yaxs="i")
hist(stn_all[,1],prob=TRUE, main ="Balok ",col="yellowgreen", cex.axis=1.2,
xlab="Rain (mm)"
On 03/08/2016 8:01 AM, roslinazairimah zakaria wrote:
Hi Jim,
I tried your code, however it still gives me only one plot. I don't
understand what is going on. Any clue?
The third par() call tells R that you want to start a new page. (So did
the second one, but it wasn't a problem there.) Ju
Hi Jim,
I tried your code, however it still gives me only one plot. I don't
understand what is going on. Any clue?
On Wed, Aug 3, 2016 at 4:55 PM, Jim Lemon wrote:
> Hi Roslina,
> You only specify space for two plots in:
>
> par(mfrow=c(1,2))
>
> However, you only try to plot two plots, so I
Dear Rosalina
I do not think par(mfrow(c(1, 2)) does what you think it does although
mfrow(c(2, 2)) might.
You could consider using layout() instead
On 03/08/2016 06:44, roslinazairimah zakaria wrote:
Dear r-users,
I would like to plot 4 graphs arranged as 2 by 2 and follows are my codes.
H
Hi Roslina,
You only specify space for two plots in:
par(mfrow=c(1,2))
However, you only try to plot two plots, so I will assume that you
only want two. You haven't defined "x" in the above code, which will
cause an error. The code below gives me two plots as I would expect (I
made up the data th
5 matches
Mail list logo