What is the best way to save a visualization from the dm package? I am currently using the viewer to save images made with dm_draw
, but this is producing low resolution images and is not ideal.
Example:
dm_nycflights13() %>%
dm_draw()
I've tried adding png(file_name = "filename.png"
and dev.off()
to sandwich the dm visualization, but haven't had any luck.