plot0: An empty plot function

View source: R/plot0.R

plot0R Documentation

An empty plot function

Description

plot0 returns an a plot of a specific size without any symbols.

Usage

plot0(
  x = c(-1, 1),
  y = NULL,
  fill = NULL,
  text = NULL,
  grid.col = NULL,
  grid.lwd = 1,
  grid.lty = 1,
  ...
)

Arguments

x

the x coordinates of points in the plot or a matrix of coordinates.

y

the y coordinates of points in the plot.

fill

The color to be used to fill the plot area.

text

A character string or a object to be coerced as character string that will be displayed in the center of the plot region.

grid.col

color of the grid's lines. The default value is NULL, in which case the grid is not drawn.

grid.lwd

line width of the grid's lines.

grid.lty

line type of the grid's lines.

...

further graphical parameters from graphics::par() (such as srt) or graphics::plot.default.

Examples

# Example 1
plot0()

# Example 2
plot0(c(-10,10), asp=1)

# Example 3
plot0(c(-10,10), text='cool', cex = 2)

# Example 3
plot0(c(-10,10), asp=1, fill=8, text='cool', srt=45, cex=4, col=2)

# Example 4
plot0(c(-10,10), fill='#ebebeb', grid.col = 'white')

# Example 4
plot0(c(-10,10), grid.col = 2)

KevCaz/graphicsutils documentation built on Sept. 16, 2022, 10:05 a.m.