graphical parameter "srt" has the wrong length

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

graphical parameter "srt" has the wrong length

Farid Cheraghi
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]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: graphical parameter "srt" has the wrong length

Duncan Murdoch-2
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]]
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: graphical parameter "srt" has the wrong length

Farid Cheraghi
Thanks for the input.

On Wed, Nov 27, 2019, 8:48 PM Duncan Murdoch <[hidden email]>
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]]
> >
> > ______________________________________________
> > [hidden email] 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]]

______________________________________________
[hidden email] 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.