Hello, I have a question about the y-axis of plots. Actually I had about 60 values. About 80 percent of these values are less than 0.2, then the other 20 percent values are more than 4,max is 10. So when I plot these values together, the y-axis's range will go 0 to 10, and my major values (80% values <0.2) will be pressed around 0 on the bottom, while other several dots will scatter in the major part of the plot area. Does anyone know how to assign the y-axis with uneven (jumping) ticks with same width, like 0, 0.1, 1, 10,100 with the same width between? Thanks a lot! Yan [[alternative HTML version deleted]]
You probably want to use the gap.plot function in the plotrix package. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of yan liu > Sent: Thursday, March 03, 2011 2:09 PM > To: r-help at r-project.org > Subject: [R] plot, y-axis, uneven scale??? > > Hello, > > I have a question about the y-axis of plots. Actually I had about 60 > values. About 80 percent of these values are less than 0.2, then the > other > 20 percent values are more than 4,max is 10. So when I plot these > values > together, the y-axis's range will go 0 to 10, and my major values (80% > values <0.2) will be pressed around 0 on the bottom, while other > several > dots will scatter in the major part of the plot area. > > Does anyone know how to assign the y-axis with uneven (jumping) ticks > with > same width, like 0, 0.1, 1, 10,100 with the same width between? > > Thanks a lot! > > Yan > > [[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.
On Thu, Mar 3, 2011 at 4:09 PM, yan liu <yanliusun at gmail.com> wrote:> Hello, > > I have a question about the y-axis of plots. ?Actually I had about 60 > values. ?About 80 percent of these values are less than 0.2, then the other > 20 percent values are more than 4,max is 10. ?So when I plot these values > together, the y-axis's range will go 0 to 10, and my major values (80% > values <0.2) will be pressed around 0 on the bottom, while other several > dots will scatter in the major part of the plot area. > > Does anyone know how to assign the y-axis with uneven (jumping) ticks with > same width, like 0, 0.1, 1, 10,100 with the same width between? > > Thanks a lot! > > YanSee the log= argument to plot (its actually listed under ?plot.default). Also eaxis in sfsmisc. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com
Possibly Parallel Threads
- uneven vector length issue with read.zoo?
- Uneven y-axis scale
- heatmap-how to change the order of the rows (genes)
- how to bind uneven column (not equal length) into matrix without recycling values
- Averaging uneven measurements by time with uneven numbers of measurements