cairo_pdf: Create a styled cairo_pdf figure

View source: R/RcssWrappers.R

cairo_pdfR Documentation

Create a styled cairo_pdf figure

Description

This is a wrapper for R's cairo_pdf function. See R's documentation for grDevices::cairo_pdf for further details

Usage

cairo_pdf(filename, Rcss = "default", Rcssclass = NULL, ...)

Arguments

filename

character string with file name

Rcss

style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle()

Rcssclass

character, style class

...

Further parameters, see documentation of grDevices::pdf

Details

Note this uses styles from 'pdf' css selectors

Examples


# send content of graphics to a pdf file
# to run this, un-comment the pdf() and dev.off() lines
# cairo_pdf(file="example-file.pdf")
barplot(1:5)
# dev.off()


Rcssplot documentation built on April 4, 2025, 2:35 a.m.