geom_dog: geom_dog

Description Usage Arguments Value Examples

View source: R/geom_dog.R

Description

geom layer adding dogs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
geom_dog(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  inherit.aes = TRUE,
  na.rm = FALSE,
  by = "width",
  nudge_x = 0,
  ...
)

Arguments

mapping

aes mapping

data

data

stat

stat

position

position

inherit.aes

logical, whether inherit aes from ggplot()

na.rm

logical, whether remove NA values

by

one of 'width' or 'height'

nudge_x

horizontal adjustment to nudge dogs

...

additional parameters

Value

geom layer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library("ggplot2")
ggplot(mtcars) +
geom_dog(aes(mpg, wt), dog = "doge", size = 5)

set.seed(1)
df <- data.frame(x = rnorm(10),
                 y = rnorm(10),
                 image = sample(c("doge",
                                  "thisisfine",
                                  "tail",
                                  "chilaquil",
                                  "gabe"),
                                 size = 10, replace = TRUE))
 ggplot(df) +
geom_dog(aes(x, y, dog = image), size = 5)

R-CoderDotCom/ggdogs documentation built on Dec. 18, 2021, 8:44 a.m.