Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export functions needed for extensions.
Closes #1235
- Loading branch information
Showing
8 changed files
with
121 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/coord-munch.r | ||
\name{coord_munch} | ||
\alias{coord_munch} | ||
\title{Munch coordinates data} | ||
\usage{ | ||
coord_munch(coord, data, range, segment_length = 0.01) | ||
} | ||
\arguments{ | ||
\item{coord}{Coordinate system definition.} | ||
|
||
\item{data}{Data set to transform - should have variables \code{x} and | ||
\code{y} are chopped up into small pieces (as defined by \code{group}). | ||
All other variables are duplicated as needed.} | ||
|
||
\item{range}{Panel range specification.} | ||
|
||
\item{segment_length}{Target segment length} | ||
} | ||
\description{ | ||
This function "munches" lines, dividing each line into many small pieces | ||
so they can be transformed independently. Used inside geom functions. | ||
} | ||
\keyword{internal} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/geom-.r | ||
\docType{data} | ||
\name{graphical-units} | ||
\alias{.pt} | ||
\alias{.stroke} | ||
\alias{graphical-units} | ||
\title{Graphical units} | ||
\format{\preformatted{ num 2.83 | ||
}} | ||
\usage{ | ||
.pt | ||
|
||
.stroke | ||
} | ||
\description{ | ||
Multiply size in mm by these constants in order to convert to the units | ||
that grid uses internally for \code{lwd} and \code{fontsize}. | ||
} | ||
\keyword{datasets} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/utilities.r | ||
\name{remove_missing} | ||
\alias{remove_missing} | ||
\title{Convenience function to remove missing values from a data.frame} | ||
\usage{ | ||
remove_missing(df, na.rm = FALSE, vars = names(df), name = "", | ||
finite = FALSE) | ||
} | ||
\arguments{ | ||
\item{df}{data.frame} | ||
|
||
\item{na.rm}{If true, will suppress warning message.} | ||
|
||
\item{vars}{Character vector of variables to check for missings in} | ||
|
||
\item{name}{Optional function name to improve error message.} | ||
|
||
\item{finite}{If \code{TRUE}, will also remove non-finite values.} | ||
} | ||
\description{ | ||
Remove all non-complete rows, with a warning if \code{na.rm = FALSE}. | ||
ggplot is somewhat more accommodating of missing values than R generally. | ||
For those stats which require complete data, missing values will be | ||
automatically removed with a warning. If \code{na.rm = TRUE} is supplied | ||
to the statistic, the warning will be suppressed. | ||
} | ||
\keyword{internal} | ||
|