ob_rectangle class
Usage
ob_rectangle(
center = class_missing,
width = numeric(0),
height = numeric(0),
east = class_missing,
north = class_missing,
west = class_missing,
south = class_missing,
northeast = class_missing,
northwest = class_missing,
southwest = class_missing,
southeast = class_missing,
angle = numeric(0),
vertex_radius = numeric(0),
label = character(0),
alpha = numeric(0),
color = character(0),
fill = character(0),
linewidth = numeric(0),
linetype = numeric(0),
style = class_missing,
x0 = numeric(0),
y0 = numeric(0),
...
)
Arguments
- center
point at center of the rectangle
- width
width
- height
height
- east
right middle point
- north
top middle point
- west
left middle point
- south
top middle point
- northeast
upper right point
- northwest
upper left point
- southwest
lower left point
- southeast
lower right point
- angle
angle of text
- vertex_radius
A numeric or unit vector of length one, specifying the corner radius for rounded corners
- label
A character, angle, or label object
- alpha
numeric value for alpha transparency
- color
character string for color
- fill
character string for fill color
- linewidth
Width of lines
- linetype
type of lines
- style
a style object
- x0
overrides x-coordinate in
center@x
- y0
overrides y-coordinate in
center@x
- ...
<
dynamic-dots
> arguments passed to style object
Examples
# specify center point
p <- ob_point(0,0)
ob_rectangle(p, width = 2, height = 2)
#> <ggdiagram::ob_rectangle>
#> @ center: <ggdiagram::ob_point>
#> @ x: num 0
#> @ y: num 0
#> @ width : num 2
#> @ height: num 2
#> Other props: label, angle, vertex_radius, alpha, color, fill,
#> linewidth, linetype, area, bounding_box, perimeter,
#> northeast, northwest, southwest, southeast, east,
#> north, west, south, side, length, style, tibble, geom,
#> normal_at, place, point_at, aesthetics