[R] Plots with Y axis split into two scales
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Tue Feb 25 19:56:00 CET 2014
Please be a good netizen and post plain text on the list.
Jim can probably point you to some plotrix function that will do what you ask, but I would encourage you to plot the data twice rather than confusing the audience with nonlinear (discontinuous) scales in a single plot.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
On February 25, 2014 9:18:50 AM PST, David Parkhurst <parkhurs at imap.iu.edu> wrote:
>I have a "Y" variable with many values less than 50, and many fewer
>between 50 and 250.I'd like to plot those Y's against an X, with two
>scales on the Y axis---maybe 60% of the axis height for 0-50 and the
>top
>40% for 50-250.(I can't use log(Y) because there are many zeroes, and
>that is the most desirable value.)
>
>I think I've seen plots done that way, but is there a way to create
>them
>in R?
>
>Thanks for any help.
>
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>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