Skip to contents

Automatically generate a suitable plot for an sm_corpus based on the requested type.

Usage

# S3 method for class 'sm_corpus'
autoplot(
  object,
  type = c("production", "landscape", "thematic", "collab", "equity", "top", "lotka",
    "bradford"),
  ...
)

Arguments

object

An sm_corpus object.

type

Plot type.

...

Additional arguments passed to the plot function.

Value

A ggplot object.

Examples

corpus <- sm_example_corpus()
ggplot2::autoplot(corpus, type = "production")