@@ -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