Skip to content

Commit a84a49a

Browse files
Add plot_ly examples
1 parent e84be65 commit a84a49a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

R/plotly_methods.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
#' @return `plotly`
55
#'
66
#' @examples
7-
#' # TODO
7+
#' data(se)
8+
#' se |>
9+
#' plot_ly(x = ~counts)
810
#'
911
#' @importFrom ttservice plot_ly
1012
#' @export
@@ -40,7 +42,9 @@ plot_ly.tbl_df <- function(data=data.frame(), ..., type=NULL, name=NULL,
4042
#' @return `plotly`
4143
#'
4244
#' @examples
43-
#' # TODO
45+
#' data(se)
46+
#' se |>
47+
#' plot_ly(x = ~counts)
4448
#'
4549
#' @importFrom ttservice plot_ly
4650
#' @export

man/plot_ly.Rd

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)