Re: [R] plot.window: need finite 'ylim' values

2020-08-23 Thread Jim Lemon
Hi Mike, This looks to me as though the error is not being generated by plot, but by a method specific to the package, maybe something with a name like plot.chart_Series, that is barfing on a vector of NA values. Jim On Mon, Aug 24, 2020 at 1:01 AM Mike wrote: > > Hi Jim, > > on 21.08. you

Re: [R] plot.window: need finite 'ylim' values

2020-08-23 Thread David Winsemius
You are using a function whose help page says it is "highly experimental". In such cases it is probably better to contact the package maintainer with a feature request. The DESCRIPTION file says contact should be through one of http://www.quantmod.com https://github.com/joshuaulrich/quantmod

Re: [R] plot.window: need finite 'ylim' values

2020-08-23 Thread Mike
Hi Jim, on 21.08. you wrote: > Try this: > > plot (chart_Series (sample.xts[,1], subset=subset, TA=ta), > type="n",ylim=c(minimum,maximum)) > > where minimum and maximum are the extremes of the plot if there were > any valid values. I've set minimum <- 0 maximum <- 1 The error persists.

Re: [R] plot.window: need finite 'ylim' values

2020-08-21 Thread Jim Lemon
Hi Mike, Try this: plot (chart_Series (sample.xts[,1], subset=subset, TA=ta), type="n",ylim=c(minimum,maximum)) where minimum and maximum are the extremes of the plot if there were any valid values. Jim On Fri, Aug 21, 2020 at 6:32 PM Mike wrote: > > Dear R users, > > I have already asked

[R] plot.window: need finite 'ylim' values

2020-08-21 Thread Mike
Dear R users, I have already asked this in r-sig-finance (not getting a solution) but it seems to be plot-related anyway. I like to plot several financial charts to files with an identical layout according to "indicators" so the charts can be browsed quickly. quantmod::chart_Series is a