[R] problems with levelplot and contourplot

2005-10-11 Thread Tom Lenaerts
Hello, Using the following code i want to make a level or contourplot of some data that I produced library(grid);library(lattice); mydata - read.table(avgee.dat); mymat - as.matrix(mydata); mymat -t(mymat) vals-as.vector(mymat); conc-c(0.0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5); a- c(0.01,

Re: [R] problems with levelplot and contourplot

2005-10-11 Thread Sundar Dorai-Raj
Tom Lenaerts wrote: Hello, Using the following code i want to make a level or contourplot of some data that I produced library(grid);library(lattice); No need to explicitly load grid. This is done when attaching lattice. Also, you do not need any ; at the end of any lines. mydata

Re: [R] problems with levelplot and contourplot

2005-10-11 Thread Tom Lenaerts
Dear Sundar Thanks a lot, this resolves the problem of the warning messages. Yet it does not produce the plot: I only get a blank Quartz panel (i'm using R on Mac OS X 1.3). I attached the file and the corrected code. Maybe it is a problem of the data? library(lattice); mydata -

Re: [R] problems with levelplot and contourplot

2005-10-11 Thread Tom Lenaerts
I have to correct my previous reply. The changes you propose work The strange thing is that if I upload the R-script to produce the plot from file using source(/Users/tomlenaerts/Programming/ObjC/Tools/AllEE/build/EEcont.R) The script does not work. When I copy-past the script myself into

Re: [R] problems with levelplot and contourplot

2005-10-11 Thread Sundar Dorai-Raj
Tom Lenaerts wrote: I have to correct my previous reply. The changes you propose work The strange thing is that if I upload the R-script to produce the plot from file using source(/Users/tomlenaerts/Programming/ObjC/Tools/AllEE/build/EEcont.R) The script does not work. When I