Skip to content

Commit

Permalink
x-axis now shows months
Browse files Browse the repository at this point in the history
  • Loading branch information
rabutler-usbr committed Dec 28, 2018
1 parent c06e9ca commit ee7f70d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/plot.knnst.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ plot.knnst <- function(x, ..., site = "S1")
aes_string("month", "Value"),
color = "red",
shape = 18
) +
labs(
x = NULL
)

# TODO: monthly pdf
Expand Down Expand Up @@ -85,5 +88,10 @@ get_plot_stats <- function(x_df, site)
dplyr::mutate_at(
"Variable",
dplyr::funs(factor(var_name_order[.], levels = var_name_order))
) %>%
dplyr::ungroup() %>%
dplyr::mutate_at(
"month",
dplyr::funs(factor(month.abb[.], levels = month.abb))
)
}

0 comments on commit ee7f70d

Please sign in to comment.