Skip to content

Commit

Permalink
Merge pull request #983 from pedro-andrade-inpe/master
Browse files Browse the repository at this point in the history
Fixing check issues related to sits_patterns
  • Loading branch information
gilbertocamara authored Jun 5, 2023
2 parents 6e81bd5 + bcd5898 commit 4c0e5ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/sits_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ plot.patterns <- function(x, y, ..., bands = NULL, year_grid = FALSE) {

if(year_grid)
plot.df <- plot.df %>%
dplyr::mutate(year = format(Time, format="%Y")) %>%
dplyr::mutate(Time = as.Date(format(Time, format="2000-%m-%d")))
dplyr::mutate(year = format(.data[["Time"]], format = "%Y")) %>%
dplyr::mutate(Time = as.Date(format(.data[["Time"]], format = "2000-%m-%d")))

# Plot temporal patterns
gp <- ggplot2::ggplot(plot.df, ggplot2::aes(
Expand Down
5 changes: 4 additions & 1 deletion man/plot.patterns.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c0e5ba

Please sign in to comment.