Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/gtPublic

Allow for easy insertion of ggplot plots in a table column via a formatter#155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rich-iannone wants to merge13 commits intomaster
base:master
Choose a base branch
Loading
fromfmt_ggplot
Open
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
fb862bd
Add `fmt_ggplot()` function
rich-iannoneJan 29, 2019
df6215e
Add to NAMESPACE
rich-iannoneJan 29, 2019
33f6064
Revise `migrate_unformatted..()` fcn
rich-iannoneJan 29, 2019
56c875d
Remove `str()` statement
rich-iannoneJan 30, 2019
c2197f0
Add roxygen documentation
rich-iannoneJan 30, 2019
d4a41b2
Create help file using roxygen
rich-iannoneJan 30, 2019
02e0c91
Add linebreaks to `stop()` statements
rich-iannoneJan 31, 2019
2c4f6be
Merge branch 'master' into fmt_ggplot
rich-iannoneApr 27, 2019
052c225
Modify roxygen documentation
rich-iannoneApr 27, 2019
3d3fbb5
Update help file using roxygen
rich-iannoneApr 27, 2019
e318b92
Add to NAMESPACE
rich-iannoneApr 27, 2019
929f5b7
Merge branch 'master' into fmt_ggplot
rich-iannoneNov 17, 2022
8d9e589
Merge branch 'master' into fmt_ggplot
rich-iannoneNov 18, 2022
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
PrevPrevious commit
NextNext commit
Modify roxygen documentation
  • Loading branch information
@rich-iannone
rich-iannone committedApr 27, 2019
commit052c225926ef557763b6b7a85e5eaedbbfe3f198
24 changes: 11 additions & 13 deletionsR/format_data.R
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1299,24 +1299,22 @@ fmt_missing <- function(data,
#'
#' It's possible to include \pkg{ggplot2} plots within a list column of the
#' input table data. The common pattern toward obtaining these plots is through
#' mutation of a list column containing all the \code{data} required for a
#' plot (e.g., \code{<data> %>% dplyr::group_by(<var>) %>%
#' tidyr::nest(.key = plot) %>%
#' dplyr::mutate(plot = purrr::map(plot, <ggplot code>))}). While \pkg{gt} will
#' mutation of a list column containing all the `data` required for a plot
#' (e.g., `<data> %>% dplyr::group_by(<var>) %>% tidyr::nest(.key = plot) %>%
#' dplyr::mutate(plot = purrr::map(plot, <ggplot code>))`). While \pkg{gt} will
#' automatically format columns containing \pkg{ggplot2} plots, using the
#'\code{fmt_ggplot()} function allows us to specify specific\code{rows} and
#'set optionsfor the plots'\code{height} and\code{aspect_ratio}.
#'`fmt_ggplot()` function allows us to specify specific`rows` and set options
#' for the plots'`height` and`aspect_ratio`.
#'
#' Targeting of values is done through \code{columns} and additionally by
#' \code{rows} (if nothing is provided for \code{rows} then entire columns are
#' selected). A number of helper functions exist to make targeting more
#' effective. Conditional formatting is possible by providing a conditional
#' expression to the \code{rows} argument. See the Arguments section for more
#' information on this.
#' Targeting of values is done through `columns` and additionally by `rows` (if
#' nothing is provided for `rows` then entire columns are selected). A number of
#' helper functions exist to make targeting more effective. Conditional
#' formatting is possible by providing a conditional expression to the `rows`
#' argument. See the Arguments section for more information on this.
#'
#' @inheritParams fmt_number
#' @inheritParams ggplot_image
#' @return an object of class\code{gt_tbl}.
#' @return an object of class`gt_tbl`.
#' @export
fmt_ggplot <- fmt_gg <- function(data,
columns,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp