Search
Question: Error in plot.window(...) : need finite 'xlim' values
0
gravatar for T Joshi
9.0 years ago by
T Joshi90
T Joshi90 wrote:
Hi, I am plotting some expression values using plot() function as follows: x.chr.locations <- coords.chr[coords.chr.index] y.features <- as.numeric(X[feature.inds,7]) plot(x.chr.locations, y.features, pch=19) which gives me following error : Error in plot.window(...) : need finite 'xlim' values In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf 3: In min(x) : no non-missing arguments to min; returning Inf 4: In max(x) : no non-missing arguments to max; returning -Inf What could be the reason ? I have checked even by changing the values of X and Y parameters of the plot function. But no change. Please guide. Thanks, Tejal
ADD COMMENTlink modified 9.0 years ago by Sean Davis21k • written 9.0 years ago by T Joshi90
0
gravatar for Sean Davis
9.0 years ago by
Sean Davis21k
United States
Sean Davis21k wrote:
On Wed, Nov 19, 2008 at 10:30 AM, T Joshi <tejalonline@gmail.com> wrote: > Hi, > I am plotting some expression values using plot() function as follows: > > x.chr.locations <- coords.chr[coords.chr.index] > y.features <- as.numeric(X[feature.inds,7]) > > plot(x.chr.locations, y.features, pch=19) > > which gives me following error : > > Error in plot.window(...) : need finite 'xlim' values > In addition: Warning messages: > 1: In min(x) : no non-missing arguments to min; returning Inf > 2: In max(x) : no non-missing arguments to max; returning -Inf > 3: In min(x) : no non-missing arguments to min; returning Inf > 4: In max(x) : no non-missing arguments to max; returning -Inf > > What could be the reason ? I have checked even by changing the values > of X and Y parameters of the plot function. But no change. Please > guide. > Looks like your x.chr.locations has missing values. However, without a reproducible example, it is impossible to tell. You can do: summary(x.chr.locations) to see if there are missing values. If so, you will want to remove those before plotting. Sean [[alternative HTML version deleted]]
ADD COMMENTlink written 9.0 years ago by Sean Davis21k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 209 users visited in the last hour