Learn R Programming

⚠️There's a newer version (1.9.1) of this package.Take me there.

mosaic (version 0.9-0)

Project MOSAIC (mosaic-web.org) statistics and mathematics teaching utilities

Description

Data sets and utilities from Project MOSAIC (mosaic-web.org) used to teach mathematics, statistics, computation and modeling. Funded by the NSF, Project MOSAIC is a community of educators working to tie together aspects of quantitative work that students in science, technology, engineering and mathematics will need in their professional lives, but which are usually taught in isolation, if at all. A few features take advantage of the manipulate package when working in RStudio.

Copy Link

Version

Install

install.packages('mosaic')

Monthly Downloads

14,995

Version

0.9-0

License

GPL (>= 2)

Maintainer

Randall Pruim

Last Published

July 3rd, 2014

Functions in mosaic (0.9-0)

Gestation

Data from the Child Health and Development Studies
freqpolygon

Frequency Polygons
fortify.summary.lm

Extract data from R objects
.is.formula

Check if formula
parse.formula

Parse formulas
panel.levelcontourplot

Lattice plot that draws a filled contour plot
project

Projections
plotDist

Plots of Discrete and Continuous Distributions
rand

Random Regressors
Cards

Standard Deck of Cards
rgeo

Sample longitude and latitude on a sphere
NHANES

Body Shape and related measurements from NHANES 1999-2004
cdist

Central portion of a distribution
RailTrail

Volume of Users of a Rail Trail
read.file

Read data files
compareMean

Compare means between 2 groups
dfapply

apply-type function for data frames
evalSubFormula

Evaluate a part of a formula
fetchGapminder1

Fetch Gapminder data
bargraph

Create bar graphs from raw data
CPS85

Data from the 1985 Current Population Survey (CPS85)
D

Derivative and Anti-derivative operators
CoolingWater

CoolingWater
Mites

Mites and Wilt Disease
Countries

Countries
interval

Extract summary statistics
TukeyHSD.lm

Additional interfaces to TukeyHSD
compareProportion

Compare proportions between 2 groups
logit

Logit and inverse logit functions
Whickham

Data from the Whickham survey
mosaic-package

mosaic: the Project MOSAIC package
fetchGoogle

Fetch data from a web service
ntiles

Create vector based on roughly equally sized groups
Galton

Galton's dataset of parent and child heights
HELPfull

Health Evaluation and Linkage to Primary Care
SnowGR

Snowfall data for Grand Rapids, MI
expandFun

Expand the left-hand side of a formula
Utilities2

Utility bills
linear.algebra

Functions for teaching linear algebra.
googleMap

Display a point on earth on a Google Map
Heightweight

Height and Weight
aggregatingFunction1

1-ary Aggregating functions
named

List extraction
deg2rad

Convert between degrees and radians
sp2df

Map Utilities
rgeo-internals

rgeo internal functions
prop

Compute proportions, percents, or counts for a single level
ediff

Lagged Differences with equal length
panel.lmbands

show confidence and preciction bands on plots
dotPlot

Dotplots
findZerosMult

Find the zeros of a function of two or more variables
integrateODE

Integrate ordinary differential equations
panel.plotFun

Panel function for plotting functions
rkintegrate

A simple Runge-Kutte integrator
numD

Numerical Derivatives
modelVars

extract predictor variables from a model
mplot

Generic plotting
.polyExp

Takes a call and returns its polynomial coefficients
xpnorm

Augmented versions of pnorm and qnorm
xchisq.test

Augmented Chi-squared test
qdata

The Data Distribution
symbolicInt

Find the symbolic integral of a formula
KidsFeet

Foot measurements in children
aggregatingFunction2

2-ary Aggregating functions
Utilities

Utility bills
evalFormula

Evaluate a formula
fetchData

A Web and Library Data-Loading Facility
fitModel

Fit a nonlinear least squares model
getVarFormula

Extract data from a data frame using a formula interface
findZeros

Find zeros of functions
ladd

Add to Lattice Plots
rflip

Tossing Coins
is.wholenumber

Check for whole number values
plotPoints

Scatter plot of points
panel.plotFun1

Panel function for plotting functions
rescale

Rescale
joinFrames

Join data frames
t.test

Student's t-Test
resample

More Random Samples
repeater-class

Repeater objects
oddsRatio

Odds Ratio for 2X2 Contingency Tables
Broyden

Multi-Dimensional Root Finding
HELPrct

Health Evaluation and Linkage to Primary Care
Births78

US Births in 1978
CIsim

Compute confidence intervals from (multiple) simulated data sets
TenMileRace

Cherry Blossom Race
SAT

State by State SAT data
SwimRecords

100 m Swimming World Records
diffmean

Difference in means
coef.function

Extract coefficients from a function
makeColorscheme

Create a color generating function from a vector of colors
logical2factor

Turn logicals into factors; leave other things alone
qdata_v

The Data Distribution
mosaic.options

Setting options for mosaic package functions
prop.test

Exact and Approximate Tests for Proportions
mosaic_formula

Convert formulas into standard shapes
Marriage

Marriage records
Alcohol

Alcohol Consumption per Capita
deltaMethod

Delta method on data frames
HeatX

Data from a heat exchanger laboratory
adapt_seq

Adaptively generate sequences in an interval
cross

Factor cross products
do

Do Things Repeatedly
mean

Aggregating functions
fav_stats

Some favorite statistical summaries
fitSpline

Fit splines to data
maggregate

Aggregate for mosaic
xyz2latlon

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

Create a function from a formula
perctable

Cross tabulation displayed as percents or proportions
plotFun

Plotting mathematical expressions
symbolicD

Symbolic Derivatives
rsquared

Extract r-squared value
HELPmiss

Health Evaluation and Linkage to Primary Care
derivedFactor

Create factors from logicals
inferArgs

Infer arguments
r.squared

Extract r-squared value
plotCumfreq

Cumulative frequency plots
xqqmath

Augmented version of qqmath
statTally

Tally test statistics
tally

Tabulate categorical data
theme.mosaic

Lattice Theme
mm

Construct a model based on groupwise means
as.xtabs

Convert objects to xtabs format
FunctionsFromData

Create function from data
columns

return a vector of row or column indices
nice_names

Nice names
binom.test

Exact Tests for Proportions
confint.numeric

Confidence interval methods for output of resampling
fortify.hclust

mosaic tools for clustering
surround

Format strings for pretty output
rfun

Generate a natural-looking function
xhistogram

Augmented histograms