Learn R Programming

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

mosaic (version 0.9.1-3)

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

19,675

Version

0.9.1-3

License

GPL (>= 2)

Maintainer

Randall Pruim

Last Published

August 23rd, 2014

Functions in mosaic (0.9.1-3)

evalFormula

Evaluate a formula
findZeros

Find zeros of functions
mid

midpoints along a sequence
as.xtabs

Convert objects to xtabs format
columns

return a vector of row or column indices
MAD

All pairs mean and sum of absolute differences
deg2rad

Convert between degrees and radians
xyz2latlon

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

A Web and Library Data-Loading Facility
evalSubFormula

Evaluate a part of a formula
freqpolygon

Frequency Polygons
sp2df

Transforms a shapefile into a dataframe
diffmean

Difference in means and proportions
linear.algebra

Functions for teaching linear algebra.
makeFun

Create a function from a formula
do

Do Things Repeatedly
panel.levelcontourplot

Lattice plot that draws a filled contour plot
aggregatingFunction1

1-ary Aggregating functions
TukeyHSD.lm

Additional interfaces to TukeyHSD
aggregatingFunction2

2-ary Aggregating functions
plotPoints

Scatter plot of points
prop.test

Exact and Approximate Tests for Proportions
logical2factor

Turn logicals into factors; leave other things alone
mUSMap

Make a US map with ggplot2
project

Projections
googleMap

Display a point on earth on a Google Map
integrateODE

Integrate ordinary differential equations
named

List extraction
perctable

Cross tabulation displayed as percents or proportions
xhistogram

Augmented histograms
fitdistr

Maximum-likelihood fitting of univariate distributions
plotCumfreq

Cumulative frequency plots
theme.mosaic

Lattice Theme
t.test

Student's t-Test
nice_names

Nice names
read.file

Read data files
.polyExp

Takes a call and returns its polynomial coefficients
r.squared

Extract r-squared value
rspin

Simulate spinning a spinnner
plotFun

Plotting mathematical expressions
expandFun

Expand the left-hand side of a formula
tally

Tabulate categorical data
rgeo-internals

rgeo internal functions
numD

Numerical Derivatives
plotDist

Plots of Discrete and Continuous Distributions
deltaMethod

Delta method on data frames
xqqmath

Augmented version of qqmath
Broyden

Multi-Dimensional Root Finding
bargraph

Create bar graphs from raw data
fortify.hclust

mosaic tools for clustering
coef.function

Extract coefficients from a function
fav_stats

Some favorite statistical summaries
compareProportion

Compare proportions between 2 groups
mPlot

Interactive plotting
CIAdata

Return a dataset based on the CIA World Factbook
mean

Aggregating functions
confint.numeric

Confidence interval methods for output of resampling
is.wholenumber

Check for whole number values
repeater-class

Repeater objects
modelVars

extract predictor variables from a model
inferArgs

Infer arguments
mm

Construct a model based on groupwise means
xpnorm

Augmented versions of pnorm and qnorm
mWorldMap

Make a world map with ggplot2
orrr

Odds Ratio and Relative Risk for 2 x 2 Contingency Tables
parse.formula

Parse formulas
qdata

The Data Distribution
fractions

Rational Approximation
pdist

Illustrated probability calculations from distributions
ntiles

Create vector based on roughly equally sized groups
CIsim

Compute confidence intervals from (multiple) simulated data sets
D

Derivative and Anti-derivative operators
adapt_seq

Adaptively generate sequences in an interval
cross

Factor cross products
dotPlot

Dotplots
ediff

Lagged Differences with equal length
fetchGapminder1

Fetch Gapminder data
joinFrames

Join data frames
.is.formula

Check if formula
qdata_v

The Data Distribution
qdist

Illustrated quantile calculations from distributions
rlatlon

Sample longitude and latitude on a sphere
rsquared

Extract r-squared value
rfun

Generate a natural-looking function
surround

Format strings for pretty output
derivedFactor

Create factors from logicals
dfapply

apply-type function for data frames
ladd

Add to Lattice Plots
mosaic-package

mosaic: the Project MOSAIC package
rand

Random Regressors
symbolicD

Symbolic Derivatives
rescale

Rescale
standardName

Standardization of Geographic Names
FunctionsFromData

Create function from data
cdist

Central portion of a distribution
fitModel

Fit a nonlinear least squares model
fetchGoogle

Fetch data from a web service
fortify.summary.lm

Extract data from R objects
getVarFormula

Extract data from a data frame using a formula interface
makeMap

Make a map with ggplot2
fitSpline

Fit splines to data
panel.plotFun

Panel function for plotting functions
prop

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

A simple Runge-Kutte integrator
rflip

Tossing Coins
binom.test

Exact Tests for Proportions
maggregate

Aggregate for mosaic
compareMean

Compare means between 2 groups
findZerosMult

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

Extract summary statistics
logit

Logit and inverse logit functions
mosaic.options

Setting options for mosaic package functions
makeColorscheme

Create a color generating function from a vector of colors
panel.lmbands

show confidence and preciction bands on plots
panel.plotFun1

Panel function for plotting functions
xchisq.test

Augmented Chi-squared test
resample

More Random Samples
symbolicInt

Find the symbolic integral of a formula
statTally

Tally test statistics
mosaic_formula

Convert formulas into standard shapes
zscore

Compute z-scores
theme_map

ggplot2 theme for maps