[R] Using image/contour with unevenly spaced data...
jasonkrupert at yahoo.com
Fri Nov 19 04:52:59 CET 2010
Is it possible to plot unevenly spaced data with image/contour function?
Below is an example of the type uneven data that I'm trying to plot with
image/contour functions. For example, I would like to have the x-distance on
the x-axis and y-distance on the y-axis and then the temperature values
determine the color used. Unfortunately this data was sampled such that it is
not evenly spaced on a Cartesian plot.
I was hoping that image(temp_samples) or contour(temp_samples) or something
similar would work, but my attempts didn't succeed.
Thanks for any feedback insights and hints...
for(ii in 1:length(hyp_distance))
for(jj in 1:length(angle_deg_val))
temperature_vals<-rnorm(length(x_distance_val), 75, 2.2)
temp_samples<-cbind(x_distance_val, y_distance_val, temperature_vals)
More information about the R-help