trackViewer.documentation icon indicating copy to clipboard operation
trackViewer.documentation copied to clipboard

ggsave doesn't save lolliplot

Open csmatyi opened this issue 1 year ago • 3 comments

Hi!

I also want to save the lolliplot in a shiny app, but it is not working for me:

output$dl_mut_plot <- downloadHandler( filename = "mutation_plot.png", content = function(file) {ggsave(file,mutation_plotter(),device="png")} )

where mutation_plotter() is a reactive function that generates the lolliplot.

csmatyi avatar Sep 14 '22 23:09 csmatyi

trackViewer is using 'grid' system, not ggplot.

jianhong avatar Sep 15 '22 11:09 jianhong

trackViewer is using 'grid' system, not ggplot.

How do you save a figure in the grid system?

Thanks, Matt

csmatyi avatar Nov 08 '22 23:11 csmatyi

Try ?pdf or ?png

From: Matthew Cserhati @.> Date: Tuesday, November 8, 2022 at 6:25 PM To: jianhong/trackViewer.documentation @.> Cc: JIANHONG OU @.>, Comment @.> Subject: Re: [jianhong/trackViewer.documentation] ggsave doesn't save lolliplot (Issue #2)

trackViewer is using 'grid' system, not ggplot.

How do you save a figure in the grid system?

Thanks, Matt

— Reply to this email directly, view it on GitHubhttps://github.com/jianhong/trackViewer.documentation/issues/2#issuecomment-1307972266, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABLBEAYQYEJZR53YHB7HX53WHLOO5ANCNFSM6AAAAAAQM3QQE4. You are receiving this because you commented.Message ID: @.***>

jianhong avatar Nov 10 '22 23:11 jianhong