Skip to content

Commit

Permalink
Fixing sccs meta plotting issue for indication names not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nhall6 committed Aug 2, 2024
1 parent e8c933f commit 3bad639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/estimation-sccs-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ estimationCreateSccsPlot <- function(data) {
}
data$database <- data$databaseName
data$type <- data$covariateName
data$indication[is.null(data$indication)] <- 'no indication'
#data$indication[is.null(data$indication)] <- 'no indication'
data$indication[is.na(data$indication)] <- 'no indication'

if(is.null(data)){
Expand Down Expand Up @@ -145,7 +145,7 @@ estimationCreateSccsPlot <- function(data) {

ggplot2::coord_cartesian(xlim = c(0.1, 10)) +
ggplot2::facet_grid(.data$database ~ .data$shortName) +
ggplot2::ggtitle(indication) +
ggplot2::labs(title = paste0("Indication: ", stringr::str_to_title(indication))) +
ggplot2::theme(
axis.title.y = ggplot2::element_blank(),
panel.grid.minor = ggplot2::element_blank(),
Expand Down

0 comments on commit 3bad639

Please sign in to comment.