Skip to content

Commit

Permalink
fix RCMDCHECK errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Oct 29, 2023
1 parent d0c4ba2 commit 1f04fab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/00_global_vars.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ globalVariables(
".metric", ".metrics", ".rank_metric", ".rank_std_err", "failure_rate", "std_err",
".rank_failure_rate", ".txt", "training", "testing", "fitted", "model", "..val", "..nm",
".white_noise_lower", ".white_noise_upper", ".date_var_collapsed", ".rowid", "..date_agg", "grp_names",
"check_row_exists", ".box_group", ".method")
"check_row_exists", ".box_group", ".observed_cleaned")
)
6 changes: 3 additions & 3 deletions R/anomalize-plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ plot_anomalies_cleaned.data.frame <- function(
# Add line - observed
g <- g +
ggplot2::geom_line(
aes(color = "Observed"),
ggplot2::aes(color = "Observed"),
# color = .line_color,
linewidth = .line_size,
linetype = .line_type,
Expand All @@ -819,12 +819,12 @@ plot_anomalies_cleaned.data.frame <- function(

# Add color scale
g <- g +
scale_color_manual(values = c(.line_color, .cleaned_line_color))
ggplot2::scale_color_manual(values = c(.line_color, .cleaned_line_color))

# Add line - observed_cleaned
g <- g +
ggplot2::geom_line(
aes(y = observed_cleaned, color = "Observed Cleaned"),
ggplot2::aes(y = observed_cleaned, color = "Observed Cleaned"),
# color = .cleaned_line_color,
linewidth = .cleaned_line_size,
linetype = .cleaned_line_type,
Expand Down

0 comments on commit 1f04fab

Please sign in to comment.