Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions R/coordinate.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
#' coord_radial()
#'
#' # Parallel coordinate (uses position encoding)
#' g2(iris, position = c('Sepal.Length', 'Sepal.Width',
#' 'Petal.Length', 'Petal.Width'), color = 'Species',
#' g2(iris, position = names(iris)[-5], color = 'Species',
#' padding = c(30, NA, NA, NA)) |>
#' mark_line() |>
#' coord_parallel() |>
Expand Down
4 changes: 2 additions & 2 deletions R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#'
#' Convert a `g2` chart object into a nested list matching G2's
#' `chart.options()` spec format. Data frames are annotated for column-major
#' JSON serialisation via [annotate_df()]. Constructor options (width, height,
#' container) are handled separately by [chart_html()].
#' JSON serialisation. Constructor options (width, height, container) are
#' handled separately by [chart_html()].
#'
#' @param chart A `g2` object.
#' @return A list suitable for JSON serialization.
Expand Down
3 changes: 1 addition & 2 deletions examples/coordinates.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ Maps multiple numeric variables to parallel axes. Use a `position`
encoding (a character vector of column names) instead of `x`/`y`.

```{r}
g2(iris, position = c('Sepal.Length', 'Sepal.Width',
'Petal.Length', 'Petal.Width'), color = 'Species',
g2(iris, position = names(iris)[-5], color = 'Species',
padding = 30) |>
mark_line() |>
coord_parallel() |>
Expand Down
3 changes: 1 addition & 2 deletions man/coord_.Rd

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

Loading