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]]

