MikSmith <mike <at> hsm.org.uk> writes:

> I'm trying to write a generic script for processing some data which finishes
> off with some plots. Given Im never sure how many columns will be in my
> dataframe I wanted to using the following 
> 
> plot(spectra.wavelength, cormat, type = "l", ylim=c(-1,1), xlab="Wavelength
> (nm)", ylab="Correlation")
> 
> however even if I specify as type="l" it appears plot as points (right hand
> plot). If I specify a range such as 
> 
> plot(650:700, cormat, type = "l", ylim=c(-1,1), xlab="Wavelength (nm)",
> ylab="Correlation")
> 
> it looks good (left hand plot). If I try something like:
> 

The example is not reproducible so we can only guess. I assume
spectra.wavelength is a matrix, so the matrix x/y values are plotted. 
In the second example the first parameter is definitively a vector.

Dieter

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to