Description Usage Arguments Author(s) Examples
Convenience method for plotting the topology simplex
1 2 3 | ## S3 method for class 'geophytter'
ggplot(data, mapping = aes_string(x = "x", y = "y", group
= "cell", fill = "topology_index"), ..., environment = parent.frame())
|
data |
Default dataset to use for plot. If not already a data.frame,
will be converted to one by |
mapping |
Default list of aesthetic mappings to use for plot. If not specified, must be suppled in each layer added to the plot. |
... |
Other arguments passed on to methods. Not currently used. |
environment |
If an variable defined in the aesthetic mapping is not
found in the data, ggplot will look for it in this environment. It defaults
to using the environment in which |
Grady Weyenberg
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(ggplot2)
ggplot(lungfish.tops) +
corner_labels() +
geom_point(aes(x=x,y=y), lungfish.proj, inherit.aes = FALSE, size=0.5)
ggplot(lungfish.tops, show.legend=FALSE) +
scale_fill_grey(start=0.5, end=0.9) +
corner_labels() +
geom_point(aes(x=x,y=y), lungfish.proj, inherit.aes = FALSE, size=0.5) +
geom_label(aes(x=x,y=y,label=topology_index),
aggregate(cbind(x,y)~topology_index, lungfish.tops$simplex, mean),
inherit.aes = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.