Learn R Programming

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

mosaic (version 0.10.0)

Project MOSAIC 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.

Copy Link

Version

Install

install.packages('mosaic')

Monthly Downloads

16,903

Version

0.10.0

License

GPL (>= 2)

Maintainer

Randall Pruim

Last Published

May 22nd, 2015

Functions in mosaic (0.10.0)

diffmean

Difference in means and proportions
findZeros

Find zeros of functions
rgeo-internals

rgeo internal functions
deg2rad

Convert between degrees and radians
print.msummary.lm

Modified summaries
makeMap

Make a map with ggplot2
ladd

Add to Lattice Plots
Broyden

Multi-Dimensional Root Finding
maggregate

Aggregate for mosaic
fitdistr

Maximum-likelihood fitting of univariate distributions
as.xtabs

Convert objects to xtabs format
chisq

Extract Chi-squared statistic
binom.test

Exact Tests for Proportions
is.wholenumber

Check for whole number values
mean

Aggregating functions
expandFun

Expand the left-hand side of a formula
numD

Numerical Derivatives
mosaic_formula

Convert formulas into standard shapes
CIAdata

Return a dataset based on the CIA World Factbook
update_ci

Update confidence interval
evalSubFormula

Evaluate a part of a formula
googleMap

Display a point on earth on a Google Map
fitModel

Fit a nonlinear least squares model
qdata_v

The Data Distribution
.is.formula

Check if formula
findZerosMult

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

Fetch data from a web service
mWorldMap

Make a world map with ggplot2
nice_names

Nice names
plotPoints

Scatter plot of points
theme.mosaic

Lattice Theme
ntiles

Create vector based on roughly equally sized groups
fortify.hclust

mosaic tools for clustering
FunctionsFromData

Create function from data
makeFun

Create a function from a formula
bargraph

Create bar graphs from raw data
getVarFormula

Extract data from a data frame using a formula interface
makeColorscheme

Create a color generating function from a vector of colors
linear.algebra

Functions for teaching linear algebra.
adapt_seq

Adaptively generate sequences in an interval
factorize

Conditionally convert vectors to factors
fetchGapminder1

Fetch Gapminder data
set.rseed

Set seed in parallel compatible way
named

List extraction
coef.function

Extract coefficients from a function
integrateODE

Integrate ordinary differential equations
xqqmath

Augmented version of qqmath
pdist

Illustrated probability calculations from distributions
plotDist

Plots of Discrete and Continuous Distributions
inferArgs

Infer arguments
mPlot

Interactive plotting
dpqrdist

Distribution wrapper
zscore

Compute z-scores
prop.test

Exact and Approximate Tests for Proportions
t_test

Student's t-Test
CIsim

Compute confidence intervals from (multiple) simulated data sets
aggregatingFunction2

2-ary Aggregating functions
fortify.summary.lm

Extract data from R objects
standardName

Standardization of Geographic Names
columns

return a vector of row or column indices
orrr

Odds Ratio and Relative Risk for 2 x 2 Contingency Tables
rstudio_is_available

Check whether RStudio is in use
cross

Factor cross products
deltaMethod

Delta method on data frames
panel.plotFun

Panel function for plotting functions
fetchData

A Web and Library Data-Loading Facility
rspin

Simulate spinning a spinnner
joinFrames

Join data frames
perctable

Cross tabulation displayed as percents or proportions
rflip

Tossing Coins
MAD_

All pairs mean and sum of absolute differences
cdist

Central portion of a distribution
compareProportion

Compare proportions between 2 groups
logical2factor

Turn logicals into factors; leave other things alone
interval

Extract summary statistics
read.file

Read data files
mm

Construct a model based on groupwise means
sp2df

Transforms a shapefile into a dataframe
D

Derivative and Anti-derivative operators
aggregatingFunction1

1-ary Aggregating functions
derivedFactor

Create factors from logicals
do

Do Things Repeatedly
mosaic.options

Setting options for mosaic package functions
rfun

Generate a natural-looking function
rand

Random Regressors
MAD

All pairs mean and sum of absolute differences
dfapply

apply-type function for data frames
qdata

The Data Distribution
swap

Swap values among columns of a data frame
compareMean

Compare means between 2 groups
project

Projections
symbolicD

Symbolic Derivatives
modelVars

extract predictor variables from a model
logit

Logit and inverse logit functions
fractions

Rational Approximation
plotCumfreq

Cumulative frequency plots
repeater-class

Repeater objects
rkintegrate

A simple Runge-Kutte integrator
resample

More Random Samples
theme_map

ggplot2 theme for maps
xpnorm

Augmented versions of pnorm and qnorm
TukeyHSD.lm

Additional interfaces to TukeyHSD
fitSpline

Fit splines to data
xyz2latlon

Convert back and forth between latitude/longitude and XYZ-space
panel.levelcontourplot

Lattice plot that draws a filled contour plot
panel.lmbands

show confidence and preciction bands on plots
panel.plotFun1

Panel function for plotting functions
dotPlot

Dotplots
prop

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

Rescale
rlatlon

Sample longitude and latitude on a sphere
tally

Tabulate categorical data
symbolicInt

Find the symbolic integral of a formula
confint.numeric

Confidence interval methods for output of resampling
evalFormula

Evaluate a formula
ediff

Lagged Differences with equal length
fav_stats

Some favorite statistical summaries
freqpolygon

Frequency Polygons
mUSMap

Make a US map with ggplot2
mosaic-package

mosaic: the Project MOSAIC package
mid

midpoints along a sequence
parse.formula

Parse formulas
plotFun

Plotting mathematical expressions
r.squared

Extract r-squared value
rsquared

Extract r-squared value
.polyExp

Takes a call and returns its polynomial coefficients
statTally

Tally test statistics
docFile

Return the path to a documentation file in a package
xchisq.test

Augmented Chi-squared test
xhistogram

Augmented histograms
qdist

Illustrated quantile calculations from distributions
surround

Format strings for pretty output