[R] graphical parameter "srt" has the wrong length

Farid Cheraghi |@r|dcher @end|ng |rom gm@||@com
Wed Nov 27 17:22:07 CET 2019


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



More information about the R-help mailing list