[R] Odp: r code to broaden the boarder of the bars of a histogram

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Fri, 11 Jun 2010 17:06:40 +0200

Hi

Look at the source code.

graphics:::plot.histogram

You can find that boxes are actually drawn by rect

So if you want to use standard graphics, you probably need to modify source code and set up your version of plot.histogram.

Maybe with ggplot2 package you can find some way how to do what you want but you shall check yourself.

Regards
Petr

r-help-bounces_at_r-project.org napsal dne 11.06.2010 15:09:21:

> To whom it may concern,
>
> I have a problem concerning the design of a histogram. How do I change
> the border widths of the bars of a histogram. The initial command is:
>
> hist (punkte,breaks=30, xlab="Punkte", ylab="Häufigkeit",
> main="Histogramm", col= heat.colors(30), border= "red")
>
> I suspect that it has to do with the "lwd" command but can't figure it
out.
>
> Kind regards,
> Andreas Baranowski
>
>
>
> University of Klagenfurt
> Universitätsstraße 65-67
> 9020 Klagenfurt
> Austria
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 11 Jun 2010 - 15:09:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Jun 2010 - 15:10:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive