[R] Rotation of parallel lines

Tonio un_tonio at yahoo.com
Mon Nov 18 14:27:20 CET 2013

Dear list, 

Consider these two parallel segments in a plot.

plot(c(1, 6), c(2, 2), type="n", xlim=c(0, 7), ylim=c(-2, 6))
segments(1, 1, 6, 1)
segments(1, 3, 6, 3)

How can I rotate the two lines together by a defined angle?

Thank you all in advance.


Antonio Rivero Ostoic
Assistant professor, PhD

School of Business and Social Science
Quantitative Analytics Group and Cognition and Behaviour Lab
Bartholins Allé 10 
DK-8000 Aarhus C

T: +45 871 65421
M: jari at asb.dk        

More information about the R-help mailing list