Message-ID: <x2u0ar1nvp.fsf@viggo.kubism.ku.dk>
Date: 2006-02-22T14:14:50Z
From: Peter Dalgaard
Subject: issue with plot (type="h")
In-Reply-To: <C437AF9075F4E84E86D34CDA5252B8EB0B9A64@intra2003.ric.si>
"Gasper Cankar" <gasper.cankar at ric.si> writes:
> Hello everyone.
>
> For reasons too long to explain I wanted to do plots similar to histograms with plot(type="h").
> I ran into a problem - if I set line width too high, histogram isn't accurate anymore.
>
> For example:
>
> par(lend=2)
> plot(c(2,4,3,2),ylim=c(0,5), type="h")
> abline(h=3)
>
> Column 3 appears just as high as it should. But if I do
>
> par(lend=2)
> plot(c(2,4,3,2),ylim=c(0,5), type="h",lwd=100)
> abline(h=3)
>
> then columns become too high. Can I correct the problem or is there another way to display my data correctly?
>
> Thanks for help,
lend=1 seems to cure it.
--
O__ ---- Peter Dalgaard ??ster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907