braidPlot: Saves braid plot to pdf.

Description Usage Arguments

View source: R/plotAppender.R

Description

Saves braid plot to pdf. Uses either ggsave() or pdf(), depending on the class of plot. Supports plots of class ggsave and trellis (i.e. lattice plots).

Usage

1
2
3
4
  braidPlot(braid, plotcode,
    filename = braidFilename(braid),
    width = braid$defaultPlotSize[1],
    height = braid$defaultPlotSize[2], Qid = NA)

Arguments

braid

A braid object

plotcode

A plot object (either ggplot or lattice)

filename

Filename without path. The path is obtained from the braid defaults

width

Width in inches

height

Height in inches

Qid

Optional identifying text that is used to print a message in the event the plot fails


andrie/braid documentation built on June 3, 2017, 7:01 p.m.