Hi all, Is srt parameter in text() not vectorized? plot(1:10, type='n') text(1:10, 1:10, letters[1:10], srt=rep(c(0, 90),5)) gives error: graphical parameter "srt" has the wrong length. The same issue is reported here: https://r.789695.n4.nabble.com/should-srt-in-text-par-recycle-its-parametres-or-not-td2125137.html thanks [[alternative HTML version deleted]]
On 27/11/2019 11:22 a.m., Farid Cheraghi wrote:> Hi all, > > Is srt parameter in text() not vectorized?No, it's documented (indirectly) as "A numerical value". (See ?par.) Duncan Murdoch> > plot(1:10, type='n') > text(1:10, 1:10, letters[1:10], srt=rep(c(0, 90),5)) > > gives error: graphical parameter "srt" has the wrong length. The same > issue is reported here: > https://r.789695.n4.nabble.com/should-srt-in-text-par-recycle-its-parametres-or-not-td2125137.html > > thanks > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Thanks for the input. On Wed, Nov 27, 2019, 8:48 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:> On 27/11/2019 11:22 a.m., Farid Cheraghi wrote: > > Hi all, > > > > Is srt parameter in text() not vectorized? > > No, it's documented (indirectly) as "A numerical value". (See ?par.) > > Duncan Murdoch > > > > > plot(1:10, type='n') > > text(1:10, 1:10, letters[1:10], srt=rep(c(0, 90),5)) > > > > gives error: graphical parameter "srt" has the wrong length. The same > > issue is reported here: > > > https://r.789695.n4.nabble.com/should-srt-in-text-par-recycle-its-parametres-or-not-td2125137.html > > > > thanks > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > >[[alternative HTML version deleted]]