Re: [R] Options for zooming plots other than zm()

2020-04-26 Thread Robert Dodier
Many thanks to everyone who contributed to this discussion. It looks like plotly and dygraphs both work well for zooming plots with thousands of points (and many other things). Thanks again, I appreciate your help. best, Robert Dodier On Fri, Apr 24, 2020 at 11:11 AM Robert Dodier wrote: > >

Re: [R] Options for zooming plots other than zm()

2020-04-26 Thread Jim Lemon
Hi Robert, Maybe you can use something simple like this: zoomInScatterPlot<-function(x=NULL,y,...) { if(is.null(x)) x<-1:length(y) plot(x,y,...) xylim<-par("usr") boxed.labels(xylim[1]-diff(xylim[1:2])/20, xylim[3]-diff(xylim[3:4])/10,"Done") xy1<-locator(1) done<-FALSE while(!done) {

Re: [R] Options for zooming plots other than zm()

2020-04-25 Thread Abby Spurdle
> I am making some plots with plot() which have a fair number of points > (thousands) and I would like to be able to interactively select a > region of the plot and zoom in on it. This doesn't answer your question, but I was wondering why having thousands of data points is problematic? Sometimes

Re: [R] Options for zooming plots other than zm()

2020-04-25 Thread Deepayan Sarkar
On Sat 25 Apr, 2020, 12:10 PM Robert Dodier, wrote: > Hi, > > I am making some plots with plot() which have a fair number of points > (thousands) and I would like to be able to interactively select a > region of the plot and zoom in on it. I tried the zoom package which > has the function zm()

Re: [R] Options for zooming plots other than zm()

2020-04-25 Thread Jeff Newmiller
Plotly and dygraphs support this. On April 24, 2020 11:11:44 AM PDT, Robert Dodier wrote: >Hi, > >I am making some plots with plot() which have a fair number of points >(thousands) and I would like to be able to interactively select a >region of the plot and zoom in on it. I tried the zoom

[R] Options for zooming plots other than zm()

2020-04-25 Thread Robert Dodier
Hi, I am making some plots with plot() which have a fair number of points (thousands) and I would like to be able to interactively select a region of the plot and zoom in on it. I tried the zoom package which has the function zm() but I found that it was unworkably slow to refresh the display. I