Package 'xplot'

Title: What the Package Does (One Line, Title Case)
Description: What the package does (one paragraph).
Authors: First Last [aut, cre] (YOUR-ORCID-ID)
Maintainer: First Last <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-10-06 02:46:40 UTC
Source: https://github.com/hypertidy/xplot

Help Index


Plot easy stuff

Description

Work around core funs being bound to assumptions, we just want points, lines, rects, segments, text, when we want it. :)

Usage

xplot(x, y = NULL, ..., add = FALSE, type = "p")

Arguments

x, y

the x and y arguments provide the x and y coordinates for the plot. Any reasonable way of defining the coordinates is acceptable. See the function xy.coords for details. If supplied separately, they must be of the same length.

...

other graphical parameters (see par and section ‘Details’ below).

type

1-character string giving the type of plot desired. The following values are possible, for details, see plot: "p" for points, "l" for lines, "b" for both points and lines, "c" for empty points joined by lines, "o" for overplotted points and lines, "s" and "S" for stair steps and "h" for histogram-like vertical lines. Finally, "n" does not produce any points or lines.

Value

nothing, called for side effect (creating or drawing on a plot)

Examples

xplot(1:10, 10:1, type = "b")
xplot(rnorm(10), rnorm(10), type = "b", add = T)
xrect(runif(36), runif(36), add = FALSE)