Skip to content

Commit

Permalink
fix heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
pweigmann committed Aug 22, 2024
1 parent 0ae6c00 commit 26f6219
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/validationHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ validationHeatmap <- function(df,
# gg tile plot using data along dimensions as given in function call
p <- ggplot(d, aes(x = .data[[x_plot,]],
y = .data[[y_plot,]],
fill = check)) +
fill = check,
text = text)) +
geom_tile(color="white", linewidth=0.0) +
scale_fill_manual(values = colors, breaks = colors) +
facet_grid(.data[[y_facet,]] ~ .data[[x_facet,]]) +
Expand All @@ -112,8 +113,8 @@ validationHeatmap <- function(df,
theme(axis.ticks = element_blank()) +
theme(axis.text = element_text(size = 9)) +
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
theme(strip.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
theme(strip.text.y = element_text(angle = 0, vjust = 0.5, hjust=1)) +
theme(strip.text.x = element_text(angle = 0, vjust = 0.5, hjust=1)) +
theme(strip.text.y = element_text(angle = 90, vjust = 0.5, hjust=1)) +
coord_equal() +
theme(legend.position = "none")

Expand Down

0 comments on commit 26f6219

Please sign in to comment.