| thermo.plot | R Documentation |
Initialize a new plot window using preset parameters or add an axis to a plot.
thermo.plot.new(xlim, ylim, xlab, ylab, cex = par("cex"),
mar = NULL, lwd = par("lwd"), side = c(1,2,3,4),
mgp = c(1.7, 0.3, 0), cex.axis = par("cex"), col = par("col"),
yline = NULL, axs = "i", plot.box = TRUE, las = 1,
xline = NULL, grid = "", col.grid = "gray", ...)
thermo.axis(lab = NULL, side = 1:4, line = 1.5, cex = par("cex"),
lwd = par("lwd"), col = par("col"), grid = "", col.grid = "gray",
plot.line = FALSE)
xlim |
numeric, limits of the |
ylim |
numeric, limits of the |
xlab |
character, |
ylab |
character, |
cex |
numeric, character expansion factor for labels |
mar |
numeric, width (number of lines) of margins on each side of plot |
lwd |
numeric, line width |
side |
numeric, which sides of plot to draw axes |
mgp |
numeric, sizes of margins of plot |
cex.axis |
numeric, character expansion factor for names of axes |
col |
character, color |
yline |
numeric, margin line on which to plot |
axs |
character, setting for axis limit calculation |
plot.box |
logical, draw a box around the plot? |
las |
numeric, style for axis labels |
xline |
numeric, margin line on which to plot |
grid |
character, type of grid (‘major’, ‘minor’, or ‘both’) |
col.grid |
character, color of the grid lines |
... |
further arguments passed to |
lab |
character, axis label |
line |
numeric, margin line on which to place axis label |
plot.line |
logical, draw axis lines? |
thermo.plot.new sets parameters for a new plot, creates a new plot using plot.new, and adds the axes tick marks to the plot.
Plot parameters (see par) including cex, mar, lwd, mgp and axs can be given, as well as a numeric vector in side identifying which sides of the plot receive tick marks.
yline, if present, denotes the margin line (default par('mgp')[1]) where the y-axis name is plotted.
thermo.axis is the function that actually adds the axes, including inward-pointing major and minor tick marks (often used for thermodynamic property diagrams).
Use grid to add a grid to the plot, corresponding to either the major ticks (solid lines), minor ticks (dashed lines), or both.
The grid can be made by adding grid argument to diagram, or by calling thermo.axis after diagram (see example).
diagram uses thermo.plot.new to set up a new plot, unless the argument tplot is set to FALSE in diagram.
# Start a new plot with specific settings
thermo.plot.new(c(0, 10), c(0, 100), xlab = "X variable", ylab = "Y variable")
# Add major and minor tick marks to an existing plot
plot(1:10)
thermo.axis()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.