Shiny plots PDF export

Sometimes it is useful to build a pdf export option into a Shiny app. I built a basic app at first (every important notes was included as comment) to show how to do it easily:

server.r

ui.r

You can also export the ggplot2 type plots like this:

server.r

final notes: If You would like to use Cairo on Ubuntu You need to run this commands at first:

sudo apt-get install libcairo2-dev
sudo apt-get install libxt-dev

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to Top