error in the plot window of rstudio
1
0
Entering edit mode
@kaviyajune1996-12866
Last seen 7.0 years ago

It is showing :

 "Error in plot.window(...) : need finite 'xlim' values
In addition: Warning message:

In sqrt(detA * pmax(0, yl2 - y^2)) : NaNs produced"

while running my code..what should I do...

R • 1.7k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 33 minutes ago
United States

These are just basic R errors, and probably don't have anything to do with Bioconductor, so next time try posting at R-help (r-help@r-project.org) instead.

The first error is saying that you are trying to tell R that you want your X-axis to extend to infinity (and beyond?):

> plot(1:10, xlim = c(0,Inf))
Error in plot.window(...) : need finite 'xlim' values

Needless to say, you cannot really have an infinite axis.

The warning is telling you that a function is generating values that are not numbers. There are any number of ways that can happen, and just saying 'hey this happened' isn't sufficient for anybody to help. A common thing that will generate an NaN is taking the square root of negative values:

> sqrt(-1)
[1] NaN
Warning message:
In sqrt(-1) : NaNs produced

If you are actually using Bioconductor tools and getting these results, you will need to give more information, like what are you doing, with what data, and ideally by providing a self-contained example that people can run. Plus the output of sessionInfo().


 

ADD COMMENT

Login before adding your answer.

Traffic: 876 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