plot_lines: Plots lines in a 3d device window

Description Usage Arguments Value

View source: R/plots.R

Description

Function plots a collection of line segments where lines is a dataframe of 2n x 3 with pairs of start/stop x, y, and z coordinates for n segements. Options are provided for sizing the device window, width/color of the segments, and defining/labelling axis,

Usage

1
2
3
4
5
6
plot_lines(win_width = 1000, win_height = 800, lines,
  line_color = "black", line_width = 2, 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)

Arguments

win_width, win_height

An integer defining the dimensions of the plot window.

lines

A numeric 2n x 3 dataframe.

line_color

A single character string defining a line's color.

line_width

A numeric defining the width of the line segments.

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.

Value

The device window id (an integer).


deandevl/Rvisual3dPlot documentation built on Nov. 5, 2019, 2:27 p.m.