[R] multi-histogram plotting

R. Michael Weylandt michael.weylandt at gmail.com
Wed Mar 14 13:47:49 CET 2012


It's easier to do log plots as

plot(h$density, log = L)

where L is one of "x", "y", or "xy" as you choose. This is well documented.

Michael

On Wed, Mar 14, 2012 at 12:02 AM, Sam Steingold <sds at gnu.org> wrote:
>> * David Winsemius <qjvafrzvhf at pbzpnfg.arg> [2012-03-13 17:53:14 -0400]:
>> On Mar 13, 2012, at 5:33 PM, Sam Steingold wrote:
>>> I can, of course, plot log(h$density), but then the number labels will
>>> be wrong.
>>
>> You could try apply a log transform to the appropriate component of
>> the "h" object and using barplot to display the results.
>
> that's what I said above: "plot log(h$density)".
> However, the ordinate will be labeled with log values, not the original
> values. how do I get the log ticks on the ordinate?
>
>
> --
> Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
> http://www.childpsy.net/ http://jihadwatch.org http://www.memritv.org
> http://dhimmi.com http://memri.org http://pmw.org.il http://truepeace.org
> Profanity is the one language all programmers know best.
>
> ______________________________________________
> 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.



More information about the R-help mailing list