Skip to content

Commit cc8c9a5

Browse files
committed
docs: improve formatting
1 parent 8edfb34 commit cc8c9a5

File tree

6 files changed

+21
-16
lines changed

6 files changed

+21
-16
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Suggests:
7878
rsvg,
7979
ggridges
8080
LazyData: true
81-
RoxygenNote: 7.3.1
81+
RoxygenNote: 7.3.2
8282
Encoding: UTF-8
8383
Roxygen: list(markdown = TRUE)
8484
Config/Needs/check:

R/plotly.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
#' help inform default axis/scale titles
1616
#' (e.g., `plot_ly(x = mtcars$wt)` vs `plot_ly(x = ~mtcars$wt)`)
1717
#'
18-
#' @param data A data frame (optional) or [crosstalk::SharedData] object.
18+
#' @param data A data frame (optional) or
19+
#' [`crosstalk::SharedData`][crosstalk::SharedData] object.
1920
#' @param ... Arguments (i.e., attributes) passed along to the trace `type`.
2021
#' See [schema()] for a list of acceptable attributes for a given trace `type`
2122
#' (by going to `traces` -> `type` -> `attributes`). Note that attributes

R/plotly_data.R

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,17 @@ print.plotly_data <- function(x, ...) {
8787

8888
#' Highlight/query data based on primary key
8989
#'
90-
#' This function simply creates an object of class [crosstalk::SharedData].
91-
#' The reason it exists is to make it easier to teach others how to leverage
92-
#' its functionality in plotly. It also makes it more discoverable if one
93-
#' is already aware of [highlight].
90+
#' This function simply creates an object of class
91+
#' [`crosstalk::SharedData`][crosstalk::SharedData]. The reason it exists is to
92+
#' make it easier to teach others how to leverage its functionality in plotly.
93+
#' It also makes it more discoverable if one is already aware of [highlight()].
9494
#'
9595
#' @param x a plotly visualization or a `data.frame`.
96-
#' @param ... arguments passed to `crosstalk::SharedData$new()`
96+
#' @param ... arguments passed to
97+
#' [`crosstalk::SharedData$new()`][crosstalk::SharedData].
9798
#' @export
9899
#' @author Carson Sievert
99-
#' @return An object of class [crosstalk::SharedData]
100+
#' @return An object of class [`crosstalk::SharedData`][crosstalk::SharedData].
100101
#' @seealso [highlight]
101102
highlight_key <- function(x, ...) {
102103
UseMethod("highlight_key")

man/add_trace.Rd

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

man/highlight_key.Rd

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

man/plot_ly.Rd

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

0 commit comments

Comments
 (0)