[R] slanted ends of horizontal lines for certain line widths
Robert Offinger
rooff at merkur.math.uni-magdeburg.de
Sun Jun 4 17:23:53 CEST 2006
Hello,
if I plot a horizontal line, e.g.,
plot(c(1,2),c(1,1),xlim=c(0,3),lwd=2,type="l")
or
plot(c(1,2),c(1,1),xlim=c(0,3),lwd=4,type="l")
then the left end (1st example) or both ends (2nd example) of the lines
are not rectangular but slanted on the graphical display (screen).
That behavour first occurred when I was trying to plot a stepfun, e.g.,
y <- round(rnorm(12),1)
Fn12 <- ecdf(y)
plot(Fn12,verticals= FALSE, do.p = FALSE,lwd=2,col.h="red")
plot(Fn12,verticals= FALSE, do.p = FALSE,lwd=4,col.h="red")
(lwd=3 seems okay)
Bug or feature?
Suggestions? (I don't like the slanted ends but lwd=2 would be better
than lwd=3)
Robert Offinger
OvG-Universität Magdeburg
----
platform sparc-sun-solaris2.9
arch sparc
os solaris2.9
system sparc, solaris2.9
status
major 2
minor 3.1
year 2006
month 06
day 01
svn rev 38247
language R
version.string Version 2.3.1 (2006-06-01)
More information about the R-help
mailing list