repr_text.recordedplot only returns a small info string containing the title (if any)
while the others return a character vector (SVG) a raw vector (the rest) containing the image data.## S3 method for class 'recordedplot':
repr_text(obj, ...)## S3 method for class 'recordedplot':
repr_png(obj, width = getOption("repr.plot.width"),
height = getOption("repr.plot.height"), bg = getOption("repr.plot.bg"),
pointsize = getOption("repr.plot.pointsize"),
antialias = getOption("repr.plot.antialias"),
res = getOption("repr.plot.res"), ...)
## S3 method for class 'recordedplot':
repr_jpg(obj, width = getOption("repr.plot.width"),
height = getOption("repr.plot.height"), bg = getOption("repr.plot.bg"),
pointsize = getOption("repr.plot.pointsize"),
antialias = getOption("repr.plot.antialias"),
res = getOption("repr.plot.res"),
quality = getOption("repr.plot.quality"), ...)
## S3 method for class 'recordedplot':
repr_svg(obj, width = getOption("repr.plot.width"),
height = getOption("repr.plot.height"), bg = getOption("repr.plot.bg"),
pointsize = getOption("repr.plot.pointsize"),
antialias = getOption("repr.plot.antialias"),
family = getOption("repr.plot.family"), ...)
## S3 method for class 'recordedplot':
repr_pdf(obj, width = getOption("repr.plot.width"),
height = getOption("repr.plot.height"), bg = getOption("repr.plot.bg"),
pointsize = getOption("repr.plot.pointsize"),
antialias = getOption("repr.plot.antialias"),
family = getOption("repr.plot.family"), ...)
repr.plot.* repr-options.dev.new()
dev.control(displaylist = 'enable')
plot(sqrt, main = 'Square root')
p <- recordPlot()
dev.off()
repr_text(p)Run the code above in your browser using DataLab