1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/repr_recordedplot.r 3\name{repr_*.recordedplot} 4\alias{repr_*.recordedplot} 5\alias{repr_text.recordedplot} 6\alias{repr_png.recordedplot} 7\alias{repr_jpg.recordedplot} 8\alias{repr_svg.recordedplot} 9\alias{repr_pdf.recordedplot} 10\title{Plot representations} 11\usage{ 12\method{repr_text}{recordedplot}(obj, ...) 13 14\method{repr_png}{recordedplot}( 15 obj, 16 width = getOption("repr.plot.width"), 17 height = getOption("repr.plot.height"), 18 bg = getOption("repr.plot.bg"), 19 pointsize = getOption("repr.plot.pointsize"), 20 antialias = getOption("repr.plot.antialias"), 21 res = getOption("repr.plot.res"), 22 ... 23) 24 25\method{repr_jpg}{recordedplot}( 26 obj, 27 width = getOption("repr.plot.width"), 28 height = getOption("repr.plot.height"), 29 bg = getOption("repr.plot.bg"), 30 pointsize = getOption("repr.plot.pointsize"), 31 antialias = getOption("repr.plot.antialias"), 32 res = getOption("repr.plot.res"), 33 quality = getOption("repr.plot.quality"), 34 ... 35) 36 37\method{repr_svg}{recordedplot}( 38 obj, 39 width = getOption("repr.plot.width"), 40 height = getOption("repr.plot.height"), 41 bg = getOption("repr.plot.bg"), 42 pointsize = getOption("repr.plot.pointsize"), 43 antialias = getOption("repr.plot.antialias"), 44 family = getOption("repr.plot.family"), 45 ... 46) 47 48\method{repr_pdf}{recordedplot}( 49 obj, 50 width = getOption("repr.plot.width"), 51 height = getOption("repr.plot.height"), 52 bg = getOption("repr.plot.bg"), 53 pointsize = getOption("repr.plot.pointsize"), 54 antialias = getOption("repr.plot.antialias"), 55 family = getOption("repr.plot.family"), 56 ... 57) 58} 59\arguments{ 60\item{obj}{The plot to create a representation for} 61 62\item{...}{ignored} 63 64\item{width}{Plot area width in inches (default: 7)} 65 66\item{height}{Plot area height in inches (default: 7)} 67 68\item{bg}{Background color (default: white)} 69 70\item{pointsize}{Text height in pt (default: 12)} 71 72\item{antialias}{Which kind of antialiasing to use for for lines and text? 'gray', 'subpixel' or 'none'? (default: gray)} 73 74\item{res}{For PNG and JPEG, specifies the PPI for rasterization (default: 120)} 75 76\item{quality}{For JPEG, determines the compression quality in \% (default: 90)} 77 78\item{family}{Font family for SVG and PDF. 'sans', 'serif', 'mono' or a specific one (default: sans)} 79} 80\description{ 81\code{repr_text.recordedplot} only returns a small info string containing the title (if any) 82while the others return a character vector (SVG) or a raw vector (the rest) containing the image data. 83} 84\details{ 85All parameters can also be specified using the eponymous \code{repr.plot.*} \link{repr-options}. 86} 87\examples{ 88dev.new() 89dev.control(displaylist = 'enable') 90plot(sqrt, main = 'Square root') 91p <- recordPlot() 92dev.off() 93 94repr_text(p) 95 96} 97