Description Usage Arguments Value See Also Examples
This function takes standard long dataset expected by the package's image.plot based functions and returns the appropriate interpolated matrices for the xyz values. Mostly used internally in disp.plot and ggdisp.plot.
1 2 |
x |
x vector |
y |
y vector |
z |
z vector |
nx, ny |
The square image will be constructed from nx by ny polygons. If nx and ny are equal to the defaults, length(unique(x)) and length(unique(y)), the plot produced will be a standard (uninterpolated) colorplot. Higher values of nx and ny will produce smoother plots. |
method |
Specifies the interpolation method to use. Default is 'bilinear' using akima::interp, you can also use 'bicubic' (from akima::bicubic.grid). |
returns a list x a nx by ny matrix of interpolated x values y a nx by ny matrix of interpolated y values z a nx by ny matrix of interpolated z values
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.