Error in plot.window(...) : need finite 'xlim' values
1
0
Entering edit mode
T Joshi ▴ 90
@t-joshi-3142
Last seen 9.6 years ago
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
• 26k views
ADD COMMENT
0
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States
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 COMMENT

Login before adding your answer.

Traffic: 633 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6