Skip to content

Commit

Permalink
expand zero
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-marsh committed Jun 12, 2024
1 parent a66eea0 commit 63826e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/LIGER_Plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ Factor_Cor_Plot <- function(
plot <- ggplot(data = plot_df, mapping = aes(x = .data[["Var"]], y = .data[["rowname"]], fill = .data[["corr"]])) +
theme_cowplot() +
geom_tile() +
scale_y_discrete(limits = factor_names, expand = c(0, 0)) +
scale_x_discrete(expand = c(0, 0)) +
scale_y_discrete(limits = factor_names) +
scale_fill_gradientn(colours = colors_use, limits = c(0,1), na.value = colors_use[1]) +
xlab("") +
Expand Down

0 comments on commit 63826e0

Please sign in to comment.