Skip to content

Commit

Permalink
Document the rot function. (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
MHenderson committed Mar 27, 2024
1 parent 1e120b9 commit 17f66ea
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
^\.Rproj\.user$
^CONDUCT\.md$
^.github$
^funcgeo\.Rcheck$
^funcgeo.*\.tar\.gz$
^funcgeo.*\.tgz$
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.Rhistory
.RData
.Ruserdata
funcgeo.Rcheck/
funcgeo*.tar.gz
funcgeo*.tgz
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Package: funcgeo
Type: Package
Title: Functional Geometry in R
Version: 0.2.1.9000
Version: 0.2.1.9001
Authors@R: person("Matthew", "Henderson", email = "[email protected]",
role = c("aut", "cre"))
Description: Peter Henderson's Functional Geometry in R.
License: MIT + file LICENSE
Imports:
grid
Encoding: UTF-8
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
URL: https://github.com/mhenderson/funcgeo
BugReports: https://github.com/mhenderson/funcgeo/issues
10 changes: 7 additions & 3 deletions R/rot.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#' Rotate a grob.
#' Rotate a picture
#'
#' @param g A grob
#' `rot` returns a new picture, made by rotating the input picture. If no angle
#' is specified then the new picture will be rotated 90 degrees. A different
#' angle can be specified with the `angle` argument.
#'
#' @param g A `grid::grob` picture
#' @param angle An angle
#' @return Rotated grob
#' @return A rotated `grid::grob` picture
#' @export
rot <- function(g, angle = 90) {
grid::editGrob(g, vp = grid::viewport(
Expand Down
10 changes: 6 additions & 4 deletions man/rot.Rd

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

0 comments on commit 17f66ea

Please sign in to comment.