View source: R/geom_path_theme.R
geom_path_theme | R Documentation |
These mostly function as geom_line()
and
geom_path()
but replaces default values from the
elementalist.geom_line
theme element and uses it to generate the grob.
geom_path_theme(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
...,
lineend = "butt",
linejoin = "round",
linemitre = 10,
arrow = NULL,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
element = NULL
)
geom_line_theme(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
na.rm = FALSE,
orientation = NA,
show.legend = NA,
inherit.aes = TRUE,
element = NULL,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer.
When using a
|
position |
A position adjustment to use on the data for this layer. This
can be used in various ways, including to prevent overplotting and
improving the display. The
|
... |
Other arguments passed on to
|
lineend |
Line end style (round, butt, square). |
linejoin |
Line join style (round, mitre, bevel). |
linemitre |
Line mitre limit (number greater than 1). |
arrow |
Arrow specification, as created by |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
element |
An |
orientation |
The orientation of the layer. The default ( |
A LayerInstance
ggproto object that can be added to a plot.
geom_path_theme()
understands the following aesthetics (required aesthetics are in bold):
x
y
alpha
colour
group
linetype
linewidth
Learn more about setting these aesthetics in vignette("ggplot2-specs")
.
ggplot(pressure, aes(temperature, pressure)) +
geom_line_theme() +
theme(
elementalist.geom_line = element_line_wiggle(10, colour = "red", n = 10)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.