Skip to content

Commit

Permalink
Move majority of riverbed examples to dontrun
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalKieslich committed Jun 9, 2016
1 parent 94ca154 commit 8d30387
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
9 changes: 3 additions & 6 deletions R/riverbed.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,22 @@
#' \link{mt_time_normalize} for time-normalizing trajectories.
#'
#' @examples
#' # Load ggplot2
#' library(ggplot2)
#'
#' # Time-normalize trajectories
#' mt_example <- mt_time_normalize(mt_example)
#'
#' # Create riverbed plot for all trials
#' mt_plot_riverbed(mt_example)
#'
#' # Create riverbed plot with custom x and y axis labels
#' \dontrun{
#' # Create riverbed plot for all trials with custom x and y axis labels
#' mt_plot_riverbed(mt_example) +
#' xlab("Time step") + ylab("X coordinate")
#' ggplot2::xlab("Time step") + ggplot2::ylab("X coordinate")
#'
#' # Create separate plots for typical and atypical trials
#' mt_plot_riverbed(mt_example, facet_col="Condition")
#'
#' # Note that it is also possible to replace the
#' # default scale for fill with a custom scale
#' \dontrun{
#' mt_plot_riverbed(mt_example, facet_col="Condition") +
#' scale_fill_gradientn(colours=grDevices::heat.colors(9),
#' name="Frequency", trans="log", labels=scales::percent)
Expand Down
5 changes: 5 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ There were no ERRORs, WARNINGs, or NOTEs.

## Downstream dependencies
There are currently no downstream dependencies for this package.

## Resubmission
This is a resubmission. In this version we have:

* Reduced the time of the examples in `mt_plot_riverbed`
9 changes: 3 additions & 6 deletions man/mt_plot_riverbed.Rd

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

0 comments on commit 8d30387

Please sign in to comment.