rg_geom_point: Plot points with cumstom design

Description Usage Arguments Examples

View source: R/plot_geoms.R

Description

Wrapper around geom_point() with default parameters to modify the design of the points. For a description of the function parameters see geom_point

Usage

1
2
3
4
5
6
7
8
rg_geom_point(
  mapping = NULL,
  pch = 21,
  color = "white",
  size = 2,
  stroke = 1.5,
  ...
)

Arguments

mapping

aestetic mapping

pch

integer, point shape

color

string, color of point

size

integer, point size

stroke

integer, width of point border

...

parameters passed on to geom_point()

Examples

1
2
3
4
5
6
7
8
data('economics_long')
economics_long %>%
filter(year(date) == 2000) %>%
ggplot(aes(date, value)) +
geom_line() +
rg_geom_point(aes(fill = variable)) +
facet_wrap(~variable, scales = 'free') +
theme_bw()

sitscholl/Rgadgets documentation built on Feb. 19, 2021, 1:24 a.m.