Skip to content

Commit

Permalink
fix: plot tissue csv
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Mar 18, 2024
1 parent 8ccf4ad commit c68169c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/board.dataview/R/dataview_plot_tissue.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,20 @@ dataview_plot_tissue_server <- function(id, pgx, r.gene, r.data_type, watermark
)
}

plot_data_csv <- function() {
pdat <- plot_data()
df <- pdat$df
df$group <- NULL
df$color <- NULL
return(df)
}

PlotModuleServer(
"pltmod",
plotlib = "plotly",
func = plot.RENDER,
func2 = modal_plot.RENDER,
csvFunc = plot_data, ## *** downloadable data as CSV
csvFunc = plot_data_csv, ## *** downloadable data as CSV
res = c(90, 170), ## resolution of plots
pdf.width = 8, pdf.height = 4,
add.watermark = watermark
Expand Down

0 comments on commit c68169c

Please sign in to comment.