Re: [R] finding the plot limits generated by default

2010-05-14 Thread Justin Fincher
That worked! Thank you again for your help. - Fincher On Fri, May 14, 2010 at 12:33, Marc Schwartz wrote: > Justin, > > Try something like this: > > par(mfrow = c(2, 1)) > > drawGffPlots2(data1, data2, trackingDye = TRUE, > slice = "chr13", newDev = 0) > > plot(densities_subset$V

Re: [R] finding the plot limits generated by default

2010-05-14 Thread Marc Schwartz
Justin, Try something like this: par(mfrow = c(2, 1)) drawGffPlots2(data1, data2, trackingDye = TRUE, slice = "chr13", newDev = 0) plot(densities_subset$V4, densities_subset$V6, type = "h", xlim = par("usr")[1:2], xaxs = "i", xlab = "Position", ylab = "Ge

Re: [R] finding the plot limits generated by default

2010-05-14 Thread Justin Fincher
Thank you for your reply, but I have additional questions. I agree that getting the common ranges before plotting would be the best scenario, it is just complicated by the fact that the first plot is generated with a function where all the data is passed in and within the function the data is subs

Re: [R] finding the plot limits generated by default

2010-05-14 Thread Marc Schwartz
On May 14, 2010, at 9:59 AM, Justin Fincher wrote: > I have two datasets that I would like to plot in a single figure. The first > plot is generated by a function that then takes a subset of the data. (It > is biological data so it is usually by chromosome e.g. > function(data1,subset="chr8") )

[R] finding the plot limits generated by default

2010-05-14 Thread Justin Fincher
I have two datasets that I would like to plot in a single figure. The first plot is generated by a function that then takes a subset of the data. (It is biological data so it is usually by chromosome e.g. function(data1,subset="chr8") ) Since not only are the chromosomes different sizes, but acro