Skip to content

Commit

Permalink
Merge pull request #34 from gladstone-institutes/fix_heatmap
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
AlexanderPico authored Sep 16, 2024
2 parents d77eb2c + dbf7ba8 commit c971114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shiny_result/scripts/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ shinyCnetplot <- function(resObject, geneList, input, output){
# Heatmap #
# - starts with top n results (ignoring p.value), identifies the top n genes by
# frequency within those results (secondary sort on fold.change) and then makes
# a tile plot with fold.change fill color using a balanced Brewer RdYBu palette.
# a tile plot with fold.change fill color using a balanced Brewer RdYlBu palette.
shinyHeatmap <- function(resObject, data, input, output){

#filter inputs options panel
Expand Down Expand Up @@ -154,7 +154,7 @@ shinyHeatmap <- function(resObject, data, input, output){
if('fold.change' %in% names(data)){
max.scale <- max(abs(res$fold.change))
p <- p + scale_fill_distiller(type = "div",
palette = "RdYBu",
palette = "RdYlBu",
direction = -1,
limits = c(-max.scale, max.scale)) +
theme(legend.position = "right")
Expand Down

0 comments on commit c971114

Please sign in to comment.