save high resolution images from htmlwidget in r

914 Views Asked by At

I created an interactive worldmap with the threejs package and while the map is fantastic I need images from it for a presentation. The final object is a htmlwidget, I can save a very low res image with webshot, but I would like one with a higher resolution. The map itself is really nice resolution wise, but I cannot save stills.

I tried the following:

saveWidget(plot, "temp.html")

webshot("temp.html", "temp.jpg", zoom = 2, vwidth = 441, vheight = 351)

Unfortunately the resulting image (can also be a png or pdf) is very low quality. I tried screenshots, no avail. I am open to any option also outside R.

0

There are 0 best solutions below