Skip to content

Commit a97ba2b

Browse files
committed
Fix typo; remove commented code
1 parent cbe301b commit a97ba2b

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

R/trace_generation.R

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ layer2traces <- function(l, d, misc) {
2929
# If smoothLine has been compiled already, consider smoothRibbon.
3030
if (isTRUE(misc$smoothLine)) {
3131
misc$smoothLine <- FALSE
32-
if (isTRUE(L$stat_param$se == FALSE)) {
32+
if (isTRUE(l$stat_params$se == FALSE)) {
3333
return(NULL)
3434
} else {
3535
g$geom <- "smoothRibbon"
@@ -671,26 +671,4 @@ geom2trace <- list(
671671
mode="lines",
672672
line=paramORdefault(params, aes2line, line.defaults))
673673
}
674-
# smooth=function(data, params) {
675-
# if (isTRUE(params$se == FALSE)) {
676-
# L1 <- NULL
677-
# } else {
678-
# L1 <- list(x=c(data$x[1], data$x, rev(data$x)),
679-
# y=c(data$ymin[1], data$ymax, rev(data$ymin)),
680-
# type="scatter",
681-
# line=paramORdefault(params, aes2line, ribbon.line.defaults),
682-
# fill="tonexty",
683-
# fillcolor=toFill(params$fill, ifelse(is.null(params$alpha), 1,
684-
# params$alpha)))
685-
# }
686-
# # $showlegend <- FALSE
687-
# c(L1,
688-
# list(x=data$x,
689-
# y=data$y,
690-
# name=params$name,
691-
# text=data$text,
692-
# type="scatter",
693-
# mode="lines",
694-
# line=paramORdefault(params, aes2line, line.defaults)))
695-
# }
696674
)

0 commit comments

Comments
 (0)