ggspaghetti | R Documentation |
tf
objectsPlots a line for each entry of a tf
-object.
geom_spaghetti
does spaghetti (i.e. "hairball") plots, geom_meatballs
does spaghetti plots with points for the actual evaluations.
stat_tf(
mapping = NULL,
data = NULL,
geom = "spaghetti",
position = "identity",
na.rm = TRUE,
show.legend = NA,
inherit.aes = TRUE,
arg = NULL,
...
)
geom_spaghetti(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = TRUE,
show.legend = NA,
inherit.aes = TRUE,
arg = NULL,
...
)
geom_meatballs(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = TRUE,
show.legend = NA,
inherit.aes = TRUE,
arg = NULL,
spaghetti = TRUE,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
geom |
The geometric object to use to display 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
|
na.rm |
remove NAs? defaults to |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
arg |
where to evaluate the functions in |
... |
Other arguments passed on to
|
spaghetti |
plot noodles along with meatballs? defaults to TRUE. |
"Flipped" aesthetics are not implemented for these geoms.
y
aestheticMandatory. Used to designate a column of class tf
to be visualized.
geom_cappelini()
for glyph plots, gglasagna()
for heatmaps.
Other tidyfun visualization:
ggcapellini
,
gglasagna()
Other tidyfun visualization:
ggcapellini
,
gglasagna()
Other tidyfun visualization:
ggcapellini
,
gglasagna()
Other tidyfun visualization:
ggcapellini
,
gglasagna()
Other tidyfun visualization:
ggcapellini
,
gglasagna()
Other tidyfun visualization:
ggcapellini
,
gglasagna()
Other tidyfun visualization:
ggcapellini
,
gglasagna()
set.seed(1221)
data <- data.frame(col = sample(gl(5, 2)))
data$f <- tf_rgp(10)
data$fi <- tf_jiggle(data$f)
data$fb <- tfb(data$f)
library(ggplot2)
ggplot(data, aes(y = f, color = tf_depth(f))) +
geom_spaghetti()
ggplot(data, aes(y = fi, shape = col, color = col)) +
geom_meatballs()
ggplot(data, aes(y = fi)) +
geom_meatballs(spaghetti = FALSE) +
facet_wrap(~col)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.