Description Usage Arguments Aesthetics See Also Examples
A variable-width line where the main line is a series of straight line segments and the width is specified at each vertex and linearly interpolated along each segment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to |
open |
a logical value indicating whether to connect the last location back to the first location to produce a closed line. |
width_units |
the units of line, detail see |
step_width |
a logical value indicating whether widths are fixed along the length of a segment. |
linejoin |
the line join style; one of "round" (default), "mitre", or "bevel". |
lineend |
the line ending style; one of "round" (default), "mitre", "butt", or "square". |
mitre_limit |
a numeric that controls when a mitre join is converted to a bevel join or a mitre ending is converted to a square ending. |
debug |
a logical value indicating whether to produce graphical debugging output. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom_vwline()
understands the following aesthetics (required
aesthetics are in bold):
x
y
alpha
colour
fill
linetype
size
width
width_left
width_right
1 2 3 4 5 6 7 8 | df <- data.frame(
x = 1:10,
y = 1:10,
width = runif(10, 0, 1)
)
ggplot(df, aes(x, y)) + geom_vwline()
ggplot(df, aes(x, y, width = width)) + geom_vwline()
ggplot(df, aes(x, y, width = width)) + geom_vwline(width_units = "inches")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.