Plotting

Plotting utilities. But see also the ggformula package.

ashplot() prepanel.default.ashplot() panel.ashplot()

Average Shifted Histograms

bargraph()

Create bar graphs from raw data

dotPlot() panel.dotPlot()

Dotplots

freqpoly() hist2freqpolygon() plot(<freqpolygon>)

Turn histograms into frequency polygons

freqpolygon() prepanel.default.freqpolygon() panel.freqpolygon()

Frequency Polygons

googleMap()

Display a point on earth on a Google Map

ladd()

Add to Lattice Plots

mPlot() mMap() mScatter() mUniplot()

Interactive plotting

mUSMap()

Make a US map with ggplot2

mWorldMap()

Make a world map with ggplot2

makeColorscheme()

Create a color generating function from a vector of colors

makeMap()

Make a map with ggplot2

mplot()

Generic plotting

panel.levelcontourplot()

Lattice plot that draws a filled contour plot

panel.lmbands()

show confidence and prediction bands on plots

panel.plotFun()

Panel function for plotting functions

panel.plotFun1()

Panel function for plotting functions

plotCumfreq() prepanel.cumfreq() panel.cumfreq()

Cumulative frequency plots

plotDist()

Plots of Discrete and Continuous Distributions

plotFun()

Plotting mathematical expressions

plotModel()

Plot a regression model

plotPoints()

Scatter plot of points

sp2df()

Transforms a shapefile into a dataframe

theme_map()

ggplot2 theme for maps

theme.mosaic() col.mosaic()

Lattice Theme

xqqmath() panel.xqqmath()

Augmented version of qqmath

Numerical Summaries

fav_stats()

Some favorite statistical summaries

MAD() SAD()

All pairs mean and sum of absolute differences

MAD_() SAD_()

All pairs mean and sum of absolute differences

mean_() mean() median() range() sd() max() min() sum() IQR() fivenum() iqr() prod() sum() favstats() quantile() var() cor() cov()

Aggregating functions

ntiles()

Create vector based on roughly equally sized groups

orrr() oddsRatio() relrisk() print(<oddsRatio>) print(<relrisk>) summary(<oddsRatio>) summary(<relrisk>)

Odds Ratio and Relative Risk for 2 x 2 Contingency Tables

zscore()

Compute z-scores

Models and Distributions

TukeyHSD(<lm>) TukeyHSD(<formula>)

Additional interfaces to TukeyHSD

binom.test()

Exact Tests for Proportions

cdist() xcgamma() xct() xcchisq() xcf() xcbinom() xcpois() xcgeom() xcnbinom() xcbeta()

Central portion of a distribution

chisq()

Extract Chi-squared statistic

cnorm() ct()

Central Probability in a Normal or T Distribution

confint(<numeric>) confint(<do.tbl_df>) confint(<do.data.frame>) confint(<data.frame>) confint(<summary.lm>)

Confidence interval methods for output of resampling

cor.test() cor_test()

Alternative formula interface for cor.test

diffmean() diffprop()

Difference in means and proportions

dpqrdist()

Distribution wrapper

fitModel() model() summary(<nlsfunction>) coef(<nlsfunction>)

Fit a nonlinear least squares model

fitSpline()

Fit splines to data

fortify(<summary.lm>) fortify(<summary.glm>) fortify(<TukeyHSD>)

Extract data from R objects

fortify(<hclust>) mplot(<hclust>)

mosaic tools for clustering

pdist() xpgamma() xpt() xpchisq() xpf() xpbinom() xppois() xpgeom() xpnbinom() xpbeta()

Illustrated probability calculations from distributions

prop.test()

Exact and Approximate Tests for Proportions

prop_test()

Internal function for testing proportion

qdata() cdata() pdata() rdata() ddata()

The Data Distribution

qdata_v() qdata_f() cdata_v() cdata_f() pdata_v() pdata_f() rdata_v() rdata_f() ddata_v() ddata_f()

The Data Distribution

qdist() xqgamma() xqt() xqchisq() xqf() xqbinom() xqpois() xqgeom() xqnbinom() xqbeta()

Illustrated quantile calculations from distributions

t_test() t.test()

Student's t-Test

update_ci()

Update confidence interval

xchisq.test()

Augmented Chi-squared test

xpnorm() xqnorm() xcnorm()

Augmented versions of pnorm and qnorm

Simulation

cull_for_do()

Cull objects used with do()

do() Do() print(<repeater>) `*`(<repeater>,<ANY>)

Do Things Repeatedly

CIsim()

Compute confidence intervals from (multiple) simulated data sets

rand()

Random Regressors

relm()

Resample a Linear Model

repeater-class

Repeater objects

resample() deal() shuffle() sample()

More Random Samples

rfun() rpoly2()

Generate a natural-looking function

rflip() print(<cointoss>) nflip()

Tossing Coins

rlatlon() rlonlat() rgeo() rgeo2()

Sample longitude and latitude on a sphere

rspin()

Simulate spinning a spinner

statTally()

Tally test statistics

swap()

Swap values among columns of a data frame

Extractors

confint(<htest>) pval() stat()

Extract summary statistics

rsquared()

Extract r-squared value

value()

Extract value from an object

Other functions

Broyden()

Multi-Dimensional Root Finding

CIAdata()

Return a dataset based on the CIA World Factbook

spliner() connector() smoother() linearModel()

Create function from data

adapt_seq()

Adaptively generate sequences in an interval

aggregatingFunction1()

1-ary Aggregating functions

aggregatingFunction1or2()

1- or 2-ary aggregating functions

aggregatingFunction2()

2-ary aggregating functions

as.xtabs()

Convert objects to xtabs format

cross()

Factor cross products

deg2rad() rad2deg()

Convert between degrees and radians

derivedVariable() derivedFactor()

Create new variables from logicals

docFile()

Return the path to a documentation file in a package

expandFun()

Expand the left-hand side of a formula

factorize() factorise()

Conditionally convert vectors to factors

findZeros() solve(<formula>)

Find zeros of functions

findZerosMult()

Find the zeros of a function of two or more variables

getVarFormula()

Extract data from a data frame using a formula interface

inferArgs()

Infer arguments

is.wholenumber()

Check for whole number values

mat() singvals()

Functions for teaching linear algebra.

mid()

midpoints along a sequence

maggregate()

Aggregate for mosaic

mosaic-package

mosaic: the Project MOSAIC package

mosaic.options() mosaic.getOption() mosaic.par.set() mosaic.par.get() restoreLatticeOptions() mosaicLatticeOptions()

Setting options for mosaic package functions

compareMean() compareProportion() deltaMethod() gwm() r.squared() mm() perctable() proptable() xhistogram()

Defunct functions

project() vlength() dot()

Projections

read.file()

Read data files

rescale()

Rescale

rstudio_is_available()

Check whether RStudio is in use

set.rseed()

Set seed in parallel compatible way

standardName() standardCountry() standardState()

Standardization of Geographic Names

surround()

Format strings for pretty output

xyz2latlon() latlon2xyz() lonlat2xyz()

Convert back and forth between latitude/longitude and XYZ-space

Deprecated and Defunct

compareMean() compareProportion() deltaMethod() gwm() r.squared() mm() perctable() proptable() xhistogram()

Defunct functions

fetchData() fetchGapminder1() fetchGapminder() fetchGoogle()

Defunct functions now in the fetch package