timelyportfolio/svgPanZoom

Adjust the size and get coordinates with renderSvgPanZoom ?

charlottesirot opened this issue · 0 comments

Dear Kent,

First I would like to thank you very much for the great job that you did! Very helpful !
I would like to know if it could be possible to:

  1. Adjust the size of the graph in the shiny app like that:

output$main_plot <- renderSvgPanZoom({
p <- ggplot(data.df, aes(x = Axis1, y = Axis2, shape = Plant, color = Type)) + geom_point(size = 5)
svgPanZoom(p, controlIconsEnabled = T)
}, height = 200, width = 400)

  1. Use a locator to get the coordinates ?

Again thank you very much !

Charlotte