Skip to content

Commit

Permalink
Add ggthemes import
Browse files Browse the repository at this point in the history
  • Loading branch information
ellispatrick committed Oct 25, 2024
1 parent 80db1da commit 1560c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: spicyR
Type: Package
Title: Spatial analysis of in situ cytometry data
Version: 1.17.7
Version: 1.17.8
Authors@R: c(
person("Nicolas", "Canete", , "[email protected]", role = "aut"),
person("Ellis", "Patrick", , "[email protected]", role = c("aut", "cre")),
Expand Down
10 changes: 5 additions & 5 deletions R/signifPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ draw_key_half_circle = function(data, params, shape) {




#' @import ggthemes
bubblePlot <- function(test,
fdr,
breaks,
Expand Down Expand Up @@ -384,10 +384,10 @@ bubblePlot <- function(test,
if(isTRUE(test$isKontextual)) {
if(is.null(contextColours)) {
# Defining colour palette for Context
palette = ggthemes_data$tableau$`color-palettes`$regular$`Tableau 10`$value
palette = ggthemes::ggthemes_data$tableau$`color-palettes`$regular$`Tableau 10`$value

if (length(unique(df$parent)) > 10) {
palette = ggthemes_data$tableau$`color-palettes`$regular$`Tableau 20`$value
palette = ggthemes::ggthemes_data$tableau$`color-palettes`$regular$`Tableau 20`$value
}

contextColours = palette[1:length(unique(df$parent))]
Expand Down Expand Up @@ -465,10 +465,10 @@ survBubble = function(result,

if(is.null(contextColours)) {
# Defining colour palette for Context
palette = ggthemes_data$tableau$`color-palettes`$regular$`Tableau 10`$value
palette = ggthemes::ggthemes_data$tableau$`color-palettes`$regular$`Tableau 10`$value

if (length(unique(plotData$parent)) > 10) {
palette = ggthemes_data$tableau$`color-palettes`$regular$`Tableau 20`$value
palette = ggthemes::ggthemes_data$tableau$`color-palettes`$regular$`Tableau 20`$value
}

contextColours = palette[1:length(unique(plotData$parent))]
Expand Down

0 comments on commit 1560c42

Please sign in to comment.