Message-ID: <81ab060d-44f1-acbf-0e96-65095acc0b8f@gmail.com>
Date: 2019-11-27T17:18:14Z
From: Duncan Murdoch
Subject: graphical parameter "srt" has the wrong length
In-Reply-To: <CAJTBV4Xo3v9ruE+qUbZ6r8smJWJpdc8c1NvEW_CZ6hSRjhXgxg@mail.gmail.com>
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.
>