ob_circle class
Arguments
- center
point at center of the circle
- radius
distance between center and edge circle
- 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
- n
number of points in circle (default = 360)
- style
an ob_style object
- x
x-coordinate of center point. If specified, overrides x-coordinate of
@center
.- y
x-coordinate of center point. If specified, overrides y-coordinate of
@center
.- id
character string to identify object
- ...
<
dynamic-dots
> properties passed to style object
Slots
aesthetics
A list of information about the circle's aesthetic properties
angle_at
A function that finds the angle of the specified point in relation to the circle's center
area
area of the circle
bounding_box
a rectangle that contains all the circles
circumference
circumference of the circle
geom
A function that converts the object to a geom. Any additional parameters are passed to
ggforce::geom_circle
.length
The number of circles in the circle object
normal_at
A function that finds a point that is perpendicular from the circle and at a specified distance
point_at
A function that finds a point on the circle at the specified angle.
polygon
a tibble containing information to create all the polygon points in a circle.
tangent_at
A function that finds the tangent line at the specified angle.
tibble
Gets a tibble (data.frame) containing parameters and styles used by
ggforce::geom_cirlce
.
Examples
# specify center point and radius
ob_circle(center = ob_point(0,0), radius = 6)
#>
#> ── <ob_circle>
#> # A tibble: 1 × 3
#> x y r
#> <dbl> <dbl> <dbl>
#> 1 0 0 6