Re: [R] R plot split screen in uneven panels

2018-12-13 Thread Luigi Marongiu
Thank you, that worked good. I tried to read the help for layout/split.screen but I found it confusing. On Wed, Dec 12, 2018 at 5:51 PM Bert Gunter wrote: > > Incidentally, here is another way to do what (I think) you asked using > layout(): > > m <- matrix(c(1,2,2), nrow =1) > layout(m) >

Re: [R] R plot split screen in uneven panels

2018-12-13 Thread Martin Maechler
> Bert Gunter > on Wed, 12 Dec 2018 08:51:04 -0800 writes: > Incidentally, here is another way to do what (I think) you asked using > layout(): > m <- matrix(c(1,2,2), nrow =1) > layout(m) > plot(1:10, type = "p", main ="The First Plot") > plot(10:1, type =

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Bert Gunter
Incidentally, here is another way to do what (I think) you asked using layout(): m <- matrix(c(1,2,2), nrow =1) layout(m) plot(1:10, type = "p",main = "The First Plot") plot(10:1, type = "l", main ="The Second Plot") On my device, the plots use different size fonts, point sizes, etc. and so

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Franklin Bretschneider
Dear Luigi Marongiu, Re: > Dear all, > I would like to draw two plots in the same device so that there is a > single row and two columns, with the first column being 1/3 of the > device's width. > I am creating a PNG object with width = 30 and height = 20 cm. > I know that I should use

Re: [R] R plot split screen in uneven panels

2018-12-12 Thread Bert Gunter
?layout Please read the Help file **carefully** and work through the **examples**. I cannot explain better than they. Here is code using layout() that I think does what you want: m <- matrix(1:2, nrow =1) layout(m, widths = c(1,2)) plot(1:10, type = "p",main = "The First Plot") plot(10:1, type =

[R] R plot split screen in uneven panels

2018-12-12 Thread Luigi Marongiu
Dear all, I would like to draw two plots in the same device so that there is a single row and two columns, with the first column being 1/3 of the device's width. I am creating a PNG object with width = 30 and height = 20 cm. I know that I should use split.screen or layout but I am lost with the