Spencer Graves
2016-Jan-30 21:34 UTC
[Rd] In plot.ts, las=1 applies to ylab with multiple series and not to axis labels
Hello: In plot.ts, las=1 applies to ylab and not axis labels with multiple series. The documented behavior is to have las=1 apply to axis labels and not ylab. To see this, please try the following: plot.ts(1:4, las=1) plot.ts(matrix(1:8, 4), las=1) On my Mac, the second displays behavior I did not expect. If I've done something stupid here, please advise; it won't be the first time ;-) Thanks to all the developers who have made R such a great contribution to humanity. Best Wishes, Spencer Graves sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.11.2 (El Capitan) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.2.3
Martin Maechler
2016-Feb-01 10:55 UTC
[Rd] In plot.ts, las=1 applies to ylab with multiple series and not to axis labels
>>>>> Spencer Graves <spencer.graves at prodsyse.com> >>>>> on Sat, 30 Jan 2016 15:34:36 -0600 writes:> Hello: > In plot.ts, las=1 applies to ylab and not axis labels with > multiple series. The documented behavior is to have las=1 apply to axis > labels and not ylab. > To see this, please try the following: > plot.ts(1:4, las=1) > plot.ts(matrix(1:8, 4), las=1) > On my Mac, the second displays behavior I did not expect. If > I've done something stupid here, please advise; it won't be the first > time ;-) Nothing stupid; indeed your expectations are correct and there's a small lapsus in R there, the '...' not being passed to the axis(..) calls in the matrix case. I'm currently checking the obvious patch and will commit it to R-devel and R-patched (unless I see problems in our checks). > Thanks to all the developers who have made R such a great > contribution to humanity. Thank you for the flowers! Martin Maechler > Best Wishes, > Spencer Graves > sessionInfo() > R version 3.2.3 (2015-12-10) > Platform: x86_64-apple-darwin13.4.0 (64-bit) > Running under: OS X 10.11.2 (El Capitan) ....
David Winsemius
2016-Feb-01 18:42 UTC
[Rd] In plot.ts, las=1 applies to ylab with multiple series and not to axis labels
> On Feb 1, 2016, at 2:55 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>> Spencer Graves <spencer.graves at prodsyse.com> >>>>>> on Sat, 30 Jan 2016 15:34:36 -0600 writes: > >> Hello: >> In plot.ts, las=1 applies to ylab and not axis labels with >> multiple series. The documented behavior is to have las=1 apply to axis >> labels and not ylab. > >> To see this, please try the following: > >> plot.ts(1:4, las=1) > >> plot.ts(matrix(1:8, 4), las=1) > >> On my Mac, the second displays behavior I did not expect. If >> I've done something stupid here, please advise; it won't be the first >> time ;-) > > Nothing stupid; indeed your expectations are correct and there's > a small lapsus in R there, the '...' not being passed to the axis(..) > calls in the matrix case. >I'm hoping you can at the same time look at the unexpected behavior I noted in a simple `plot` call that I observed over the weekend, also on a Mac, but it's hard to believe this is related to the OS.. plot(1:10,1:10, pch=20, lwd=c(1,1,1,3,1) ,type='b') What I'm seeing is the size of the points are accepting the 'lwd' argument when my reading of the docs is that it should be the intervening segments that accept it. And I echo Duncan's thanks.> I'm currently checking the obvious patch and will commit it to > R-devel and R-patched (unless I see problems in our checks). > >> Thanks to all the developers who have made R such a great >> contribution to humanity. > > Thank you for the flowers! > Martin Maechler > > >> Best Wishes, >> Spencer Graves > >> sessionInfo() >> R version 3.2.3 (2015-12-10) >> Platform: x86_64-apple-darwin13.4.0 (64-bit) >> Running under: OS X 10.11.2 (El Capitan) > > .... > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-develDavid Winsemius Alameda, CA, USA
Seemingly Similar Threads
- In plot.ts, las=1 applies to ylab with multiple series and not to axis labels
- problem plotting "ts" in a data.frame
- plot(1:3) malfunctions with par(bg='transparent')
- problem plotting "ts" in a data.frame
- BUG?: On Linux setTimeLimit() fails to propagate timeout error when it occurs (works on Windows)