Skip to content

Commit

Permalink
third
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Jan 13, 2024
1 parent ba435e2 commit 3e8c751
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 15 deletions.
10 changes: 6 additions & 4 deletions R/geom_richtext2.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ margin_adj <- function(x, margin) {
#'
#' @examples
#' text <- c(
#' "Some text **in bold.**",
#' "Linebreaks<br>Linebreaks<br>Linebreaks",
#' "*x*<sup>2</sup> + 5*x* + *C*<sub>*i*</sub>",
#' "Some <span style='color:blue'>blue text **in bold.**</span><br>And *italics text.*<br>And some <span style='font-size:18pt; color:black'>large</span> text."
#' "Some text **in bold.**",
#' "Linebreaks<br>Linebreaks<br>Linebreaks",
#' "*x*<sup>2</sup> + 5*x* + *C*<sub>*i*</sub>",
#' "Some <span style='color:blue'>blue text **in bold.**</span><br>And
#' *italics text.*<br>And some <span style='font-size:18pt; color:black'>
#' large</span> text."
#' )
#' @keywords internal
#' @export
Expand Down
4 changes: 2 additions & 2 deletions R/geom_taylor.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ taylor_data <- function(ref, model, sd.method = "sample", normalize = FALSE, ...
#'
#' @inheritParams ggplot2::geom_point
#' @param show.obs.label logical, whether to show the label of observed point.
#' @param obj.colour color of observed point.
#' @param obj.size size of observed point.
#' @param obs.colour color of observed point.
#' @param obs.size size of observed point.
#'
#' @example R/examples/ex-geom_taylor.R
#' @export
Expand Down
3 changes: 2 additions & 1 deletion R/gg.layers-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ NULL
utils::globalVariables(
c(
".", ".SD", ".N", "..vars",
"vals", "value", "r"
"vals", "value", "r",
'x', "perc", "name"
)
)
}
Expand Down
2 changes: 2 additions & 0 deletions R/ggplot_legend.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#' ggplot_legend
#'
#' @param g A ggplot object
#' @return A grob object
#'
#' @importFrom ggplot2 ggplot_gtable
Expand Down
8 changes: 4 additions & 4 deletions man/geom_taylor.Rd

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

3 changes: 3 additions & 0 deletions man/ggplot_legend.Rd

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

10 changes: 6 additions & 4 deletions man/richtextGrob.Rd

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

0 comments on commit 3e8c751

Please sign in to comment.