diff --git a/R/visualization.R b/R/visualization.R index 52033b3a1..fbbfae8cb 100644 --- a/R/visualization.R +++ b/R/visualization.R @@ -6430,7 +6430,7 @@ CenterTitle <- function(...) { DarkTheme <- function(...) { # Some constants for easier changing in the future black.background <- element_rect(fill = 'black') - black.background.no.border <- element_rect(fill = 'black', size = 0) + black.background.no.border <- element_rect(fill = 'black', linewidth = 0) font.margin <- 4 white.text <- element_text( colour = 'white', @@ -6441,8 +6441,8 @@ DarkTheme <- function(...) { l = font.margin ) ) - white.line <- element_line(colour = 'white', size = 1) - no.line <- element_line(size = 0) + white.line <- element_line(colour = 'white', linewidth = 1) + no.line <- element_line(linewidth = 0) # Create the dark theme dark.theme <- theme( # Set background colors @@ -9236,7 +9236,7 @@ SingleImagePlot <- function( geom_polygon( mapping = aes(group = .data[['cell']]), color = border.color, - size = border.size + linewidth = border.size ) } else { # Default to no borders when plotting centroids