Browse files

Re-roxygenize

  • Loading branch information...
1 parent f769691 commit 05c21268ec7b26a41c74802c1c9ed9782b09a37f @wch wch committed May 25, 2012
Showing with 149 additions and 6 deletions.
  1. +1 −0 DESCRIPTION
  2. +7 −0 NAMESPACE
  3. +11 −0 R/theme-aaa.r
  4. +12 −0 man/element_blank.Rd
  5. +20 −0 man/element_line.Rd
  6. +20 −0 man/element_rect.Rd
  7. +21 −0 man/element_segment.Rd
  8. +29 −0 man/element_text.Rd
  9. +10 −0 man/is.rel.Rd
  10. +10 −0 man/rel.Rd
  11. +8 −6 man/theme_blank.Rd
View
1 DESCRIPTION
@@ -178,6 +178,7 @@ Collate:
'stat-ydensity.r'
'summary.r'
'templates.r'
+ 'theme-aaa.r'
'theme-defaults.r'
'theme-elements.r'
'theme.r'
View
7 NAMESPACE
@@ -23,6 +23,11 @@ export(coord)
export(cut_interval)
export(cut_number)
export(discrete_scale)
+export(element_blank)
+export(element_line)
+export(element_rect)
+export(element_segment)
+export(element_text)
export(expand_limits)
export(facet_grid)
export(facet_null)
@@ -104,6 +109,7 @@ export(position_jitter)
export(position_stack)
export(qplot)
export(quickplot)
+export(rel)
export(resolution)
export(scale_alpha_continuous)
export(scale_alpha_discrete)
@@ -344,6 +350,7 @@ S3method(print,facet)
S3method(print,ggplot)
S3method(print,gtable)
S3method(print,proto)
+S3method(print,rel)
S3method(print,scale)
S3method(print,theme)
S3method(print,uneval)
View
11 R/theme-aaa.r
@@ -0,0 +1,11 @@
+#' Relative sizing for theme elements
+#' @export
+rel <- function(x) {
+ structure(x, class = "rel")
+}
+
+#' @S3method print rel
+print.rel <- function(x, ...) print(noquote(paste(x, " *", sep = "")))
+
+#' Reports whether x is a rel object
+is.rel <- function(x) inherits(x, "rel")
View
12 man/element_blank.Rd
@@ -0,0 +1,12 @@
+\name{element_blank}
+\alias{element_blank}
+\title{Theme element: blank.
+This theme element draws nothing, and assigns no space}
+\usage{
+ element_blank()
+}
+\description{
+ Theme element: blank. This theme element draws nothing,
+ and assigns no space
+}
+
View
20 man/element_line.Rd
@@ -0,0 +1,20 @@
+\name{element_line}
+\alias{element_line}
+\title{Theme element: line.}
+\usage{
+ element_line(colour = NULL, size = NULL, linetype = NULL)
+}
+\arguments{
+ \item{colour}{line color}
+
+ \item{size}{line size}
+
+ \item{linetype}{line type}
+}
+\description{
+ This element draws a line between two (or more) points
+}
+\seealso{
+ \code{link{theme_segment}}
+}
+
View
20 man/element_rect.Rd
@@ -0,0 +1,20 @@
+\name{element_rect}
+\alias{element_rect}
+\title{Theme element: rectangle.}
+\usage{
+ element_rect(fill = NULL, colour = NULL, size = NULL,
+ linetype = NULL)
+}
+\arguments{
+ \item{fill}{fill colour}
+
+ \item{colour}{border color}
+
+ \item{size}{border size}
+
+ \item{linetype}{border linetype}
+}
+\description{
+ Most often used for backgrounds and borders.
+}
+
View
21 man/element_segment.Rd
@@ -0,0 +1,21 @@
+\name{element_segment}
+\alias{element_segment}
+\title{Theme element: segments.}
+\usage{
+ element_segment(colour = NULL, size = NULL,
+ linetype = NULL)
+}
+\arguments{
+ \item{colour}{line color}
+
+ \item{size}{line size}
+
+ \item{linetype}{line type}
+}
+\description{
+ This element draws segments between a set of points
+}
+\seealso{
+ \code{link{theme_line}}
+}
+
View
29 man/element_text.Rd
@@ -0,0 +1,29 @@
+\name{element_text}
+\alias{element_text}
+\title{Theme element: text.}
+\usage{
+ element_text(family = NULL, face = NULL, colour = NULL,
+ size = NULL, hjust = NULL, vjust = NULL, angle = NULL,
+ lineheight = NULL)
+}
+\arguments{
+ \item{family}{font family}
+
+ \item{face}{font face ("plain", "italic", "bold")}
+
+ \item{colour}{text colour}
+
+ \item{size}{text size (in pts)}
+
+ \item{hjust}{horizontal justification (in [0, 1])}
+
+ \item{vjust}{vertical justification (in [0, 1])}
+
+ \item{angle}{angle (in [0, 360])}
+
+ \item{lineheight}{line height}
+}
+\description{
+ Theme element: text.
+}
+
View
10 man/is.rel.Rd
@@ -0,0 +1,10 @@
+\name{is.rel}
+\alias{is.rel}
+\title{Reports whether x is a rel object}
+\usage{
+ is.rel(x)
+}
+\description{
+ Reports whether x is a rel object
+}
+
View
10 man/rel.Rd
@@ -0,0 +1,10 @@
+\name{rel}
+\alias{rel}
+\title{Relative sizing for theme elements}
+\usage{
+ rel(x)
+}
+\description{
+ Relative sizing for theme elements
+}
+
View
14 man/theme_blank.Rd
@@ -1,13 +1,15 @@
\name{theme_blank}
\alias{theme_blank}
-\title{Theme element: blank.
-This theme element draws nothing, and assigns no space}
+\alias{theme_line}
+\alias{theme_rect}
+\alias{theme_segment}
+\alias{theme_text}
+\title{Deprecated theme_xxx functions}
\usage{
- theme_blank()
+ theme_blank(...)
}
\description{
- Theme element: blank. This theme element draws nothing,
- and assigns no space
+ The \code{theme_xx} functions have been deprecated. They
+ are replaced with the \code{element_xx} functions.
}
-\keyword{dplot}

0 comments on commit 05c2126

Please sign in to comment.