This function will make a plot. Code from http://stackoverflow.com/questions/10856882/r-interpolated-polar-contour-plot was highly modified to meet retinal plotting funtionality.
1 2 3 4 5 6 7 8 9 10 | fit_plot_azimuthal(x, y, z, contours = TRUE, legend = TRUE, axes = TRUE,
should_plot_points = TRUE, extrapolate = TRUE, col_breaks_source = 2,
col_levels = 50, col = rev(colorRampPalette(brewer.pal(11,
"PuOr"))(col_levels)), contour_breaks_source = 1,
contour_levels = col_levels + 1, outer.radius = pi/2,
circle.rads = pretty_list_not_including_max(0, outer.radius),
spatial_res = 1000, single_point_overlay = 0, lambda = 0.001,
xyrelief = 1, tmp_input = NULL, plot_suppress = FALSE,
compute_error = FALSE, falciform_coords = NULL, falc2 = NA,
polynomial_m = NULL, ...)
|
x, y, z |
cartesian input in azimuthal format |
contours |
whether to plot contours. |
legend |
Color legend with tick marks |
axes |
Radial axes |
extrapolate |
By default TRUE, will make plot a circle. |
col_breaks_source |
2 element vector with max and min |
col_levels |
number of color levels |
col |
colors to plot |
contour_breaks_source |
1 if data, 2 if calculated surface data |
contour_levels |
number of contour levels |
outer.radius |
size of plot |
circle.rads |
radius lines |
spatial_res |
Used to define a spatial_res by spatial_res plotting resolution. |
lambda |
lambda value for thin plate spline interpolation |
xyrelief |
scaling factor for interpolation matrix. |
tmp_input |
tmp_input |
plot_suppress |
by default FALSE |
compute_error |
whether to use fields::predictSE |
falciform_coords |
vertices in xy format of the falciform process |
falc2 |
a second falficorm coordinate file |
polynomial_m |
A polynomial function of degree (m-1) will be included in the model as the drift (or spatial trend) component. Default is the value such that 2m-d is greater than zero where d is the dimension of x. |
... |
passed arguments |
points |
whether to plot individual datapoints as X's |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.