diff --git a/.Rd2pdf5285/Rd2.tex b/.Rd2pdf5285/Rd2.tex new file mode 100644 index 0000000..f6fb446 --- /dev/null +++ b/.Rd2pdf5285/Rd2.tex @@ -0,0 +1,12 @@ +\documentclass[a4paper]{book} +\usepackage[times,inconsolata,hyper]{Rd} +\usepackage{makeidx} +\usepackage[latin1]{inputenc} % @SET ENCODING@ +% \usepackage{graphicx} % @USE GRAPHICX@ +\makeindex{} +\begin{document} +\chapter*{} +\begin{center} +{\textbf{\huge \R{} documentation}} \par\bigskip{{\Large of \file{ggalt}}} +\par\bigskip{\large \today} +\end{center} diff --git a/R/coord_proj.r b/R/coord_proj.r index be9eb6b..4abcbad 100644 --- a/R/coord_proj.r +++ b/R/coord_proj.r @@ -9,13 +9,13 @@ #' \if{html}{ #' A sample of the output from \code{coord_proj()} using the Winkel-Tripel projection: #' -#' \figure{coord_proj_01.png}{options: width="100\%" alt="Figure: coord_proj_01.png"} +#' \figure{coordproj01.png}{options: width="100\%" alt="Figure: coordproj01.png"} #' } #' #' \if{latex}{ #' A sample of the output from \code{coord_proj()} using the Winkel-Tripel projection: #' -#' \figure{coordproj01.pdf}{options: width=10cm} +#' \figure{coordproj01.png}{options: width=10cm} #' } #' #' @param proj projection definition. If left \code{NULL} will default to diff --git a/R/geom_ash.r b/R/geom_ash.r index a3555cb..81d7644 100644 --- a/R/geom_ash.r +++ b/R/geom_ash.r @@ -5,13 +5,13 @@ #' \if{html}{ #' A sample of the output from \code{stat_ash()}: #' -#' \figure{stat_ash_01.png}{options: width="100\%" alt="Figure: stat_ash_01.png"} +#' \figure{statash01.png}{options: width="100\%" alt="Figure: statash01.png"} #' } #' #' \if{latex}{ #' A sample of the output from \code{stat_ash()}: #' -#' \figure{statash01.pdf}{options: width=10cm} +#' \figure{statash01.png}{options: width=10cm} #' } #' #' @inheritParams ggplot2::geom_area diff --git a/R/geom_bkde.r b/R/geom_bkde.r index 9da8fbc..d448d57 100644 --- a/R/geom_bkde.r +++ b/R/geom_bkde.r @@ -1,18 +1,18 @@ #' Display a smooth density estimate. #' -#' A kernel density estimate, useful for display the distribution of variables -#' with underlying smoothness. +#' A kernel density estimate, useful for displaying the distribution of +#' variables with underlying smoothness. #' #' \if{html}{ #' A sample of the output from \code{geom_bkde()}: #' -#' \figure{geom_bkde_01.png}{options: width="100\%" alt="Figure: geom_bkde_01.png"} +#' \figure{geombkde01.png}{options: width="100\%" alt="Figure: geombkde01.png"} #' } #' #' \if{latex}{ #' A sample of the output from \code{geom_bkde()}: #' -#' \figure{geombkde01.pdf}{options: width=10cm} +#' \figure{geombkde01.png}{options: width=10cm} #' } #' #' @section Aesthetics: diff --git a/R/geom_bkde2d.r b/R/geom_bkde2d.r index b8251a1..218a405 100644 --- a/R/geom_bkde2d.r +++ b/R/geom_bkde2d.r @@ -74,13 +74,13 @@ GeomBkde2d <- ggproto("GeomBkde2d", GeomPath, #' \if{html}{ #' A sample of the output from \code{geom_bkde2d()}: #' -#' \figure{geom_bkde2d_01.png}{options: width="100\%" alt="Figure: geom_bkde2d_01.png"} +#' \figure{geombkde2d01.png}{options: width="100\%" alt="Figure: geombkde2d01.png"} #' } #' #' \if{latex}{ #' A sample of the output from \code{geom_bkde2d()}: #' -#' \figure{geombkde2d01.pdf}{options: width=10cm} +#' \figure{geombkde2d01.png}{options: width=10cm} #' } #' #' @param bandwidth the kernel bandwidth smoothing parameter. see diff --git a/R/geom_encircle.r b/R/geom_encircle.r index a423aa0..1cfe80a 100644 --- a/R/geom_encircle.r +++ b/R/geom_encircle.r @@ -142,10 +142,21 @@ if (FALSE) { } - - #' Automatically enclose points in a polygon #' +#' @details +#' \if{html}{ +#' A sample of the output from \code{geom_encircle()}: +#' +#' \figure{geomencircle01.png}{options: width="100\%" alt="Figure: geomencircle01.png"} +#' } +#' +#' \if{latex}{ +#' A sample of the output from \code{geom_encircle()}: +#' +#' \figure{geomencircle01.png}{options: width=10cm} +#' } +#' #' @param mapping mapping #' @param data data #' @param stat stat diff --git a/R/geom_lollipop.r b/R/geom_lollipop.r index d3a26ff..5001246 100644 --- a/R/geom_lollipop.r +++ b/R/geom_lollipop.r @@ -9,6 +9,18 @@ #' Use the \code{horizontal} parameter to abate the need for \code{coord_flip()} #' (see the \code{Arguments} section for details). #' +#' \if{html}{ +#' A sample of the output from \code{geom_lollipop()}: +#' +#' \figure{geomlollipop01.png}{options: width="100\%" alt="Figure: geomlollipop01.png"} +#' } +#' +#' \if{latex}{ +#' A sample of the output from \code{geom_lollipop()}: +#' +#' \figure{geomlollipop01.png}{options: width=10cm} +#' } +#' #' @section Aesthetics: #' \Sexpr[results=rd,stage=build]{ggplot2:::rd_aesthetics("geom", "point")} #' @inheritParams ggplot2::layer diff --git a/R/geom_xspline.r b/R/geom_xspline.r index e56dc13..62c71ea 100644 --- a/R/geom_xspline.r +++ b/R/geom_xspline.r @@ -7,13 +7,13 @@ #' \if{html}{ #' A sample of the output from \code{geom_xspline()}: #' -#' \figure{geom_xspline_01.png}{options: width="100\%" alt="Figure: geom_xspline_01.png"} +#' \figure{geomxspline01.png}{options: width="100\%" alt="Figure: geomxspline01.png"} #' } #' #' \if{latex}{ #' A sample of the output from \code{geom_xspline()}: #' -#' \figure{geomxspline01.pdf}{options: width=10cm} +#' \figure{geomxspline01.png}{options: width=10cm} #' } #' #' @section Aesthetics: diff --git a/R/stateface.r b/R/stateface.r index 25661a4..bc91ef6 100644 --- a/R/stateface.r +++ b/R/stateface.r @@ -65,6 +65,18 @@ load_stateface <- function() { #' run \code{show_stateface()} to get the filesystem location and then #' load the font manually from there. #' +#' \if{html}{ +#' A sample of the output from \code{geom_stateface()}: +#' +#' \figure{geomstateface01.png}{options: width="100\%" alt="Figure: geomstateface01.png"} +#' } +#' +#' \if{latex}{ +#' A sample of the output from \code{geom_stateface()}: +#' +#' \figure{geomstateface01.png}{options: width=10cm} +#' } +#' #' @param nudge_x,nudge_y Horizontal and vertical adjustment to nudge l #' abels by. Useful for offsetting text from points, particularly #' on discrete scales. diff --git a/man/coord_proj.Rd b/man/coord_proj.Rd index 76a83e7..3f92107 100644 --- a/man/coord_proj.Rd +++ b/man/coord_proj.Rd @@ -40,13 +40,13 @@ the \code{proj4} package. \if{html}{ A sample of the output from \code{coord_proj()} using the Winkel-Tripel projection: -\figure{coord_proj_01.png}{options: width="100\%" alt="Figure: coord_proj_01.png"} +\figure{coordproj01.png}{options: width="100\%" alt="Figure: coordproj01.png"} } \if{latex}{ A sample of the output from \code{coord_proj()} using the Winkel-Tripel projection: -\figure{coordproj01.pdf}{options: width=10cm} +\figure{coordproj01.png}{options: width=10cm} } } \note{ diff --git a/man/figures/coordproj01.png b/man/figures/coordproj01.png new file mode 100644 index 0000000..5e665f1 Binary files /dev/null and b/man/figures/coordproj01.png differ diff --git a/man/figures/geombkde01.png b/man/figures/geombkde01.png new file mode 100644 index 0000000..ba9fe0c Binary files /dev/null and b/man/figures/geombkde01.png differ diff --git a/man/figures/geombkde2d01.png b/man/figures/geombkde2d01.png new file mode 100644 index 0000000..21bf03e Binary files /dev/null and b/man/figures/geombkde2d01.png differ diff --git a/man/figures/geomencircle01.png b/man/figures/geomencircle01.png new file mode 100644 index 0000000..e51c1d2 Binary files /dev/null and b/man/figures/geomencircle01.png differ diff --git a/man/figures/geomlollipop01.png b/man/figures/geomlollipop01.png new file mode 100644 index 0000000..65b6133 Binary files /dev/null and b/man/figures/geomlollipop01.png differ diff --git a/man/figures/geomstateface01.png b/man/figures/geomstateface01.png new file mode 100644 index 0000000..7ff35ff Binary files /dev/null and b/man/figures/geomstateface01.png differ diff --git a/man/figures/geomxspline01.png b/man/figures/geomxspline01.png new file mode 100644 index 0000000..4dc4b09 Binary files /dev/null and b/man/figures/geomxspline01.png differ diff --git a/man/figures/statash01.png b/man/figures/statash01.png new file mode 100644 index 0000000..37818e5 Binary files /dev/null and b/man/figures/statash01.png differ diff --git a/man/geom_bkde.Rd b/man/geom_bkde.Rd index d6944d2..408fb0c 100644 --- a/man/geom_bkde.Rd +++ b/man/geom_bkde.Rd @@ -79,20 +79,20 @@ specified by range.x are ignored. see \code{\link[KernSmooth]{bkde}} for details} } \description{ -A kernel density estimate, useful for display the distribution of variables -with underlying smoothness. +A kernel density estimate, useful for displaying the distribution of +variables with underlying smoothness. } \details{ \if{html}{ A sample of the output from \code{geom_bkde()}: -\figure{geom_bkde_01.png}{options: width="100\%" alt="Figure: geom_bkde_01.png"} +\figure{geombkde01.png}{options: width="100\%" alt="Figure: geombkde01.png"} } \if{latex}{ A sample of the output from \code{geom_bkde()}: -\figure{geombkde01.pdf}{options: width=10cm} +\figure{geombkde01.png}{options: width=10cm} } } \section{Aesthetics}{ diff --git a/man/geom_bkde2d.Rd b/man/geom_bkde2d.Rd index b09e1e7..226dfdf 100644 --- a/man/geom_bkde2d.Rd +++ b/man/geom_bkde2d.Rd @@ -96,13 +96,13 @@ results with contours. This can be useful for dealing with overplotting \if{html}{ A sample of the output from \code{geom_bkde2d()}: -\figure{geom_bkde2d_01.png}{options: width="100\%" alt="Figure: geom_bkde2d_01.png"} +\figure{geombkde2d01.png}{options: width="100\%" alt="Figure: geombkde2d01.png"} } \if{latex}{ A sample of the output from \code{geom_bkde2d()}: -\figure{geombkde2d01.pdf}{options: width=10cm} +\figure{geombkde2d01.png}{options: width=10cm} } } \section{Computed variables}{ diff --git a/man/geom_encircle.Rd b/man/geom_encircle.Rd index c4ed2b9..31a3553 100644 --- a/man/geom_encircle.Rd +++ b/man/geom_encircle.Rd @@ -31,6 +31,19 @@ adds a circle around the specified points \description{ Automatically enclose points in a polygon } +\details{ +\if{html}{ +A sample of the output from \code{geom_encircle()}: + +\figure{geomencircle01.png}{options: width="100\%" alt="Figure: geomencircle01.png"} +} + +\if{latex}{ +A sample of the output from \code{geom_encircle()}: + +\figure{geomencircle01.png}{options: width=10cm} +} +} \examples{ d <- data.frame(x=c(1,1,2),y=c(1,2,2)*100) diff --git a/man/geom_lollipop.Rd b/man/geom_lollipop.Rd index 24fd235..455b51a 100644 --- a/man/geom_lollipop.Rd +++ b/man/geom_lollipop.Rd @@ -66,6 +66,18 @@ suitable alternative to or replacement for bar charts. Use the \code{horizontal} parameter to abate the need for \code{coord_flip()} (see the \code{Arguments} section for details). + +\if{html}{ +A sample of the output from \code{geom_lollipop()}: + +\figure{geomlollipop01.png}{options: width="100\%" alt="Figure: geomlollipop01.png"} +} + +\if{latex}{ +A sample of the output from \code{geom_lollipop()}: + +\figure{geomlollipop01.png}{options: width=10cm} +} } \section{Aesthetics}{ diff --git a/man/geom_stateface.Rd b/man/geom_stateface.Rd index 842012f..541dd97 100644 --- a/man/geom_stateface.Rd +++ b/man/geom_stateface.Rd @@ -75,6 +75,18 @@ device, you'll need to install the font on your system. \code{ggalt} ships with a copy of the StateFace TTF font. You can run \code{show_stateface()} to get the filesystem location and then load the font manually from there. + +\if{html}{ +A sample of the output from \code{geom_stateface()}: + +\figure{geomstateface01.png}{options: width="100\%" alt="Figure: geomstateface01.png"} +} + +\if{latex}{ +A sample of the output from \code{geom_stateface()}: + +\figure{geomstateface01.png}{options: width=10cm} +} } \examples{ \dontrun{ diff --git a/man/geom_xspline.Rd b/man/geom_xspline.Rd index f47ea5f..fbc7e47 100644 --- a/man/geom_xspline.Rd +++ b/man/geom_xspline.Rd @@ -77,13 +77,13 @@ first before computing the splines. \if{html}{ A sample of the output from \code{geom_xspline()}: -\figure{geom_xspline_01.png}{options: width="100\%" alt="Figure: geom_xspline_01.png"} +\figure{geomxspline01.png}{options: width="100\%" alt="Figure: geomxspline01.png"} } \if{latex}{ A sample of the output from \code{geom_xspline()}: -\figure{geomxspline01.pdf}{options: width=10cm} +\figure{geomxspline01.png}{options: width=10cm} } diff --git a/man/stat_ash.Rd b/man/stat_ash.Rd index 6c20a2e..d0581ba 100644 --- a/man/stat_ash.Rd +++ b/man/stat_ash.Rd @@ -69,13 +69,13 @@ See \code{\link[ash]{bin1}} & \code{\link[ash]{ash1}} for more information. \if{html}{ A sample of the output from \code{stat_ash()}: -\figure{stat_ash_01.png}{options: width="100\%" alt="Figure: stat_ash_01.png"} +\figure{statash01.png}{options: width="100\%" alt="Figure: statash01.png"} } \if{latex}{ A sample of the output from \code{stat_ash()}: -\figure{statash01.pdf}{options: width=10cm} +\figure{statash01.png}{options: width=10cm} } } \section{Aesthetics}{