Learn R Programming

plotscaper (version 0.2.8)

add_plot: Add a plot to a scene or schema

Description

This function adds a plot to an existing plotscaper scene or schema. Not meant to be called directly but instead with a wrapper function such as add_scatterplot().

Usage

add_plot(x, spec)

Value

The scene or schema back

Arguments

x

A plotscaper scene or schema

spec

A list with the plot specification