R/speedtsplot.R

#' The function \code{speedtsplot} plots the data from the \code{speedts} data frame.
#'
#' @param speedts, a matrix
#' @usage speedtsplot(speedts)
speedtsplot <- function(speedts) {
#  speedts <- dplyr::as_tibble(speedts)
  ggplot2::ggplot(speedts, ggplot2::aes_string("t", "u", "day")) + ggplot2::geom_point() +
    ggplot2::geom_smooth(se = FALSE, na.rm = TRUE) +
    ggplot2::ggtitle("Time-Speed Plot")
}

Try the cartools package in your browser

Any scripts or data that you put into this service are public.

cartools documentation built on May 1, 2019, 10:40 p.m.