plot(...., type = "h", lwd = 10) results in square tops

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

plot(...., type = "h", lwd = 10) results in square tops

Luis Ridao Cruz
R-help,

I'm using the following code:

plot(1985:2005, data, type = "h", lwd = 10)

which should plot histogram like figure.
The bar tops are square and I was wondering if
it is intended to be so or not (I can of course
use barplot instead).


Thanks

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: plot(...., type = "h", lwd = 10) results in square tops

Uwe Ligges
Luis Ridao Cruz wrote:

> R-help,
>
> I'm using the following code:
>
> plot(1985:2005, data, type = "h", lwd = 10)
>
> which should plot histogram like figure.
> The bar tops are square and I was wondering if
> it is intended to be so or not (I can of course
> use barplot instead).

For the line endings see ?par and its argument "lend".

Uwe Ligges

>
> Thanks
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html