Skip to content

Commit

Permalink
chore: add example plot graphic to manual pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hrbrmstr committed Apr 12, 2023
1 parent 96ed7a5 commit ba0e62a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/ggsolar-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#'
#' Generate "solar system" plots using everyone's favorite plotting package.
#'
#' \if{html}{
#' \out{<div style="text-align: center">}\figure{README-sol-1.png}{options: style="width:750px;max-width:75\%;"}\out{</div>}
#' }
#' \if{latex}{
#' \out{\begin{center}}\figure{README-sol-1.png}\out{\end{center}}
#' }
#'
#' @md
#' @name ggsolar
#' @keywords internal
Expand Down
7 changes: 7 additions & 0 deletions R/plot-orbits.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
#' at a minimum — a polygon geom and point geom. A text geom can
#' optionally be added, but only naive positioning of labels is performed.
#'
#' \if{html}{
#' \out{<div style="text-align: center">}\figure{README-sol-1.png}{options: style="width:750px;max-width:75\%;"}\out{</div>}
#' }
#' \if{latex}{
#' \out{\begin{center}}\figure{README-sol-1.png}\out{\end{center}}
#' }
#'
#' @param orbits (df)
#' @param planet_positions (df)
#' @param label_planets (bool) if `TRUE`, then planet labels will be
Expand Down
8 changes: 8 additions & 0 deletions man/ggsolar.Rd

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

7 changes: 7 additions & 0 deletions man/plot_orbits.Rd

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

0 comments on commit ba0e62a

Please sign in to comment.