ggplot.geophytter: Convenience method for plotting the topology simplex

Description Usage Arguments Author(s) Examples

Description

Convenience method for plotting the topology simplex

Usage

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())

Arguments

data

Default dataset to use for plot. If not already a data.frame, will be converted to one by fortify. If not specified, must be suppled in each layer added to the plot.

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 ggplot() is called.

Author(s)

Grady Weyenberg

Examples

 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)

grady/geophyttertools documentation built on May 17, 2019, 8:01 a.m.