RE: [R] xlims of barplot

2003-11-13 Thread Marc Schwartz
On Thu, 2003-11-13 at 18:01, Paul Sorenson wrote: SNIP > >OK...I think I understand what you are doing. > > > >You want a series of barplots that have "space" for the same number of > >vertical bars along the x axis, but there may be gaps in the series for > >any given barplot. Presumably, those

RE: [R] xlims of barplot

2003-11-13 Thread Paul Sorenson
-Original Message- From: Marc Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, 14 November 2003 9:44 AM To: Paul Sorenson Cc: [EMAIL PROTECTED] Subject: RE: [R] xlims of barplot >On Thu, 2003-11-13 at 15:53, Paul Sorenson wrote: > >SNIP > >> Sorry for being vague, it

RE: [R] xlims of barplot

2003-11-13 Thread Marc Schwartz
On Thu, 2003-11-13 at 15:53, Paul Sorenson wrote: SNIP > Sorry for being vague, it is the latter case, vertical bars. The data > doesn't satisfy condition 1. The family of 6 plots is datestamped data, > the first plot showing all defects, then each subsequent plot showing > defects of each seve

RE: [R] xlims of barplot

2003-11-13 Thread Paul Sorenson
-Original Message- From: Marc Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, 14 November 2003 12:49 AM To: Paul Sorenson Cc: [EMAIL PROTECTED] Subject: Re: [R] xlims of barplot On Wed, 2003-11-12 at 23:54, Paul Sorenson wrote: >> I would like to create a family of barplots wi

RE: [R] xlims of barplot

2003-11-13 Thread Paul Sorenson
Thanks - that is a very valuable tip. -Original Message- From: Simon Fear [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 November 2003 8:53 PM To: Paul Sorenson; [EMAIL PROTECTED] Subject: RE: [R] xlims of barplot I'd recommend you read the code for barplot (it's all in R;

Re: [R] xlims of barplot

2003-11-13 Thread Marc Schwartz
On Thu, 2003-11-13 at 07:49, Marc Schwartz wrote: > # Now use this format for EACH barplot > barplot(, horiz = TRUE, xlim = c(0, max.x)) > > That will result in the x axis being the same in each plot. You might > want to use something like 'xlim = c(0, max.x * 1.25)', which will give > you

Re: [R] xlims of barplot

2003-11-13 Thread Marc Schwartz
On Wed, 2003-11-12 at 23:54, Paul Sorenson wrote: > I would like to create a family of barplots with the same xlimits. Is > there a way to "read" the xlimits from the first graph so I can apply it to > the subsequent ones? > > I have tried just taking the min and max of the x data and the plot do

RE: [R] xlims of barplot

2003-11-13 Thread Simon Fear
I'd recommend you read the code for barplot (it's all in R; just type barplot.default at the prompt) then emulate the xlim calculation prior to starting your series of plots, calling each plot with the same xlim. Reading the base package coding is always VERY instructive. Takes time, but it's wort