thebioengineer / camcorder

Record plots generated during an R session and replay as a gif!
https://thebioengineer.github.io/camcorder/
Other
201 stars 7 forks source link

Is SVG and PDF not supported? #59

Open tomasrei opened 4 months ago

tomasrei commented 4 months ago

Hi!

Can svg and pdf be previewed in the viewer using camcorder? I have tried without success.

For example, using the following settings:

camcorder::gg_record(
dir = here("temp_img"),
device = "pdf",
dpi = 300,
width = 30,
height = 34 * 9 / 16, #16:9 aspect ration
units = "cm"
)

Gives me this output:

image

It would be great if this could be implemented otherwise as SVG and PDF are the only vector formats, as far as I know. Maybe there is some know workaround?

Thanks!