Skip to content

Commit 5fdf41a

Browse files
authored
Merge pull request #72 from hbgyeom1/master
changed color lists for kaplan.R
2 parents b1ed3de + 7bf14b8 commit 5fdf41a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

R/kaplan.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,8 @@ kaplanModule <- function(input, output, session, data, data_label, data_varStruc
863863
min = 0, max = 1, value = 0.8
864864
),
865865
textInput(session$ns("xaxis_km"), "x-axis text", "Time-to-event"),
866-
radioButtons(session$ns("pal_km"), "Line color", choices = rownames(RColorBrewer::brewer.pal.info), selected = "Set1", inline = T),
866+
# radioButtons(session$ns("pal_km"), "Line color", choices = rownames(RColorBrewer::brewer.pal.info), selected = "Set1", inline = T),
867+
radioButtons(session$ns("pal_km"), "Line color", choices = c("Set1", "black", "npg", "aaas", "nejm", "lancet", "jama", "jco", "frontiers"), selected = "Set1", inline = T),
867868
sliderInput(session$ns("linewidth_km"), "Line Width", min = 0, max = 2, value = 1, step = 0.1)
868869
)
869870
} else {
@@ -883,7 +884,8 @@ kaplanModule <- function(input, output, session, data, data_label, data_varStruc
883884
min = 0, max = 1, value = 0.1 + input$ylims[1]
884885
),
885886
h3("Line"),
886-
radioButtons(session$ns("pal_km"), "Line color", choices = c("black", rownames(RColorBrewer::brewer.pal.info)), selected = "Set1", inline = T),
887+
# radioButtons(session$ns("pal_km"), "Line color", choices = c("black", rownames(RColorBrewer::brewer.pal.info)), selected = "Set1", inline = T),
888+
radioButtons(session$ns("pal_km"), "Line color", choices = c("Set1", "black", "npg", "aaas", "nejm", "lancet", "jama", "jco", "frontiers"), selected = "Set1", inline = T),
887889
checkboxInput(session$ns("linetype"), "Different line type", value = F),
888890
h3("Others"),
889891
textInput(session$ns("xaxis_km"), "x-axis text", "Time-to-event"),

0 commit comments

Comments
 (0)