Learn R Programming

see (version 0.4.1)

geom_point2: Better looking points

Description

Somewhat nicer points (especially in case of transparency) without borders and contour.

Usage

geom_point2(..., stroke = 0, shape = 16)

geom_jitter2(..., size = 2, stroke = 0, shape = 16)

Arguments

...

Other arguments to be passed to geom_point.

stroke

Stroke thickness.

shape

Shape of points.

size

Size of points.

Examples

Run this code
# NOT RUN {
library(ggplot2)
library(see)

normal <- ggplot(iris, aes(x = Petal.Width, y = Sepal.Length)) +
  geom_point(size = 8, alpha = 0.3) +
  theme_modern()

new <- ggplot(iris, aes(x = Petal.Width, y = Sepal.Length)) +
  geom_point2(size = 8, alpha = 0.3) +
  theme_modern()

plots(normal, new, n_columns = 2)

# }

Run the code above in your browser using DataLab