geom_circle_cm: Geom Layer for Circle with Absolute Size

Description Usage Arguments Details Examples

View source: R/geom_circle_cm.R

Description

This layer uses centimeter as unit to draw circles so that the size and shape will not be influenced by the change of the coordinate systems (even when a polar system is used). Note: this function does not have linetype and n arguments.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
geom_circle_cm(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  linetype = NULL,
  ...
)

Arguments

mapping

aes mapping.

data

data.

stat

stat.

position

position.

na.rm

logical, whether to remove NA values.

show.legend

whether to show legend.

inherit.aes

logical, whether to inherit aes from ggplot().

linetype

should always be NULL. because it will not be used.

...

additional parameters.

Details

Accepted properties are:

Examples

1
2
3
4
library(ggplot2)
dat=data.frame(x=1: 10, y=rep(5, 10), R=rep(c(0.5, 1), 5))
ggplot(dat)+xlim(0, 11)+ylim(1, 9)+
	geom_circle_cm(aes(x=x, y=y, fill=factor(R)), rcm=dat$R, alpha=0.5)

plothelper documentation built on July 2, 2020, 4:03 a.m.