Error in plot.window(...)
band2<-bands[2]# specifying the band number
plot(band2)#ploting the band
Error in plot.window(...) : need finite 'ylim' values
Error in plot.window(...)
band2<-bands[2]# specifying the band number
plot(band2)#ploting the band
Error in plot.window(...) : need finite 'ylim' values
It is hard to say what the problem is without knowing more about your data. Does band2 have any non-NA values? What are the results of
str(band2)
summary(band2)
I can approximately reproduce your error by trying to plot a data frame where one column is all NA.
> DF <- data.frame(A = 1:4, B = c(NA, NA, NA, NA))
> plot(DF)
Error in plot.window(...) : need finite 'ylim' 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
the data is basically raster data not vector data
i dont think i have null values
Without more information about your data, I cannot suggest anything. Please post the output from these commands.
str(band2)
summary(band2)
class(band2)
If band2 is not very large, the output of the following command would be very useful.
dput(band2)
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.