File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -969,8 +969,8 @@ plot.spei <- function(x, ...) {
969969
970970 # Plot it
971971 g <- ggplot(kk , aes(.data [[" time" ]], .data [[" value" ]],
972- fill = " cat" ,
973- color = " cat"
972+ fill = .data [[ " cat" ]] ,
973+ color = .data [[ " cat" ]]
974974 ))
975975 # reference period (if different than whole series)
976976 if (! is.null(x $ ref.period )) {
@@ -981,10 +981,10 @@ plot.spei <- function(x, ...) {
981981 # add the bars with the SPEI values
982982 g <- g +
983983 geom_bar(stat = " identity" ) + # color='white' helps separate between values
984- # scale_fill_manual(values=c('blue','red')) + # classic SPEI look
985- # scale_color_manual(values=c('blue','red')) + # classic SPEI look
986- scale_fill_manual(values = c(" cyan3" , " tomato" )) + # new look
987- scale_color_manual(values = c(" cyan3" , " tomato" )) # new look
984+ # scale_fill_manual(values=c('blue','red')) + # classic SPEI look
985+ # scale_color_manual(values=c('blue','red')) # classic SPEI look
986+ scale_fill_manual(values = c(" cyan3" , " tomato" )) + # new look
987+ scale_color_manual(values = c(" cyan3" , " tomato" )) # new look
988988 # add NAs
989989 g <- g +
990990 geom_point(aes(.data [[" time" ]], .data [[" na" ]]),
You can’t perform that action at this time.
0 commit comments