[R] using contour() with x,y,z data?

Bert Gunter gunter.berton at gene.com
Thu Jun 26 20:24:41 CEST 2008

Please **READ** ?contour. x and y are the location of grid lines, z must be
a matrix. Your data are **not** of that form.

Bert Gunter

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Bob and Deb
Sent: Thursday, June 26, 2008 11:01 AM
To: r-help at r-project.org
Subject: [R] using contour() with x,y,z data?

Hello list,

I'm new to R and I have a problem :-)  Below is what my data file that looks
like.  I tried to import and contour this data by doing this:

   cv_data <- read.table("cv_data.csv",sep=",",header=TRUE)

I get the error "Error in contour.default(x,y,z) : increasing 'x', and 'y'
values expected"  I can see that y is not increasing, but I don't know how
to get this to work.

Thanks in advance for any help.

x,   y,   z
10, 0.1, 3
10, 0.2, 7

	[[alternative HTML version deleted]]

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list