Points are specified with x and y coordinates.
Polar points are ordinary points but are specified with an angle (theta) and a radial distance (r)
Usage
ob_point(
x = 0,
y = 0,
alpha = class_missing,
color = class_missing,
fill = class_missing,
shape = class_missing,
size = class_missing,
stroke = class_missing,
style = class_missing,
...
)
ob_polar(
theta = class_missing,
r = class_missing,
alpha = class_missing,
color = class_missing,
fill = class_missing,
shape = class_missing,
size = class_missing,
stroke = class_missing,
style = class_missing
)
Arguments
- x
Vector of coordinates on the x-axis (also can take a tibble/data.frame or 2-column matrix as input.)
- y
Vector of coordinates on the y-axis
- alpha
numeric value for alpha transparency
- color
character string for color
- fill
character string for fill color
- shape
Point shape type. Can be specified with an integer (between 0 and 25), a single character (which uses that character as the plotting symbol), a . to draw the smallest rectangle that is visible (i.e., about one pixel), an NA to draw nothing, or a mapping to a discrete variable.
- size
numeric size
- stroke
Width of point border line
- style
Gets and sets the styles associated with points
- ...
<
dynamic-dots
> properties passed to style- theta
Angle of the vector from the origin to the ob_point
- r
Radius = Distance from the origin to the ob_point
Slots
auto_label
Gets x and y coordinates and makes a label
"(x,y)"
length
The number of points in the ob_point object
tibble
Gets a tibble (data.frame) containing parameters and styles used by
ggplot2::geom_point
.xy
Gets a 2-column matrix of the x and y coordinates of the ob_point object.
geom
A function that converts the object to a geom. Any additional parameters are passed to
ggplot2::geom_point
.