Description Usage Arguments Value
Function plots the 3d points in the current device window. x, y, and z are vectors providing the location of the points. Options for point color and size along with labelling and axis options are provided.
1 2 3 4 5 6 | plot_points(win_width = 1000, win_height = 800, x, y, z,
pt_color = "black", pt_size = 6, bkg_color = "white",
draw_axis = TRUE, main_lab = NULL, x_lab = "X", y_lab = "Y",
z_lab = "Z", axis_color = "black", xlim = c(0, 10), ylim = c(0,
10), zlim = c(0, 10), x_ticks = 11, y_ticks = 11, z_ticks = 11,
html_file = NULL)
|
win_width, win_height |
An integer defining the dimensions of the plot window. |
x, y, z |
A vector of numeric values defining the x, y, z location of each point to be plotted. |
pt_color |
A character string defining the color of the points. |
pt_size |
A numeric defining the size of the points in pixels. |
bkg_color |
A character string defining the window background color. |
draw_axis |
A logical which if TRUE draws the axes. |
main_lab |
A character string defining the plot's main title. |
x_lab, y_lab, z_lab |
A character string defining the axis labels. |
axis_color |
A character string defining the axis color. |
xlim, ylim, zlim |
An integer vector defining the min/max of an axis. |
x_ticks, y_ticks, z_ticks |
An integer defining the number of ticks for an axis. |
html_file |
A character string that defines the file path to creating an html of the plot. |
The device window id (an integer).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.