[R] graphical parameter "srt" has the wrong length
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Wed Nov 27 18:18:14 CET 2019
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 using 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.
>
More information about the R-help
mailing list