Learn R Programming

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

sfsmisc

The R package sfsmisc has finally made it into a revision control system, and the fad of the day being git & github, so be it!

sfsmisc has been on CRAN for a very long time, and containing R code that is up to 17.5 years old.

It is a collection of "goodies" as we used to call these nice utility functions. Whereas the package has been written and maintained by Martin Maechler, really there are quite a few more members of the SfS (Seminar fuer Statistik at ETH Zurich) who have authored some of the functions or contributed to them.

DESCRIPTION

Useful utilities 'goodies' from Seminar fuer Statistik ETH Zurich, quite a few related to graphics; many ported from S-plus times.

Copy Link

Version

Install

install.packages('sfsmisc')

Monthly Downloads

14,507

Version

1.1-0

License

GPL (>= 2)

Maintainer

Martin Maechler

Last Published

February 23rd, 2016

Functions in sfsmisc (1.1-0)

lseq

Generate Sequences, Equidistant on Log Scale
p.arrows

Prettified Arrows Plots
cum.Vert.funkt

Kumulative Verteilung Aufzeichnen
histBxp

Plot a Histogram and a Boxplot
p.hboxp

Add a Horizontal Boxplot to the Current Plot
Duplicated

Counting-Generalization of duplicated()
mpl

Simple Matrix Plots
last

Get Last Elements of a Vector
paste.vec

Utility for 'Showing' S vectors
read.org.table

Read.table for an Emacs Org Table
posdefify

Find a Close Positive Definite Matrix
p.dnorm

Plot Parametric Density Functions
plotStep

Plot a Step Function
sourceAttach

Source and Attach an R source file
u.datumdecode

Convert “Numeric” Dates
repChar

Make Simple String from Repeating a Character, e.g. Blank String
vcat

Paste Utilities -- Concatenate Strings
u.boxplot.x

Utility Returning x-Coordinates of Boxplot
prt.DEBUG

Utility Printing in DEBUG mode
unif

Nice Uniform Points in Interval
u.assign0

'Portable' assign / get functions (R / S-plus) for 'Frame 0'
ellipsePoints

Compute Radially Equispaced Points on Ellipse
D2ss

Numerical Derivatives of (x,y) Data (via Smoothing Splines)
n.plot

Name Plot: Names or Numbers instead of Points in Plot
errbar

Scatter Plot with Error Bars
primes

Find all Primes Less Than n
QUnif

Quasi Randum Numbers via Halton Sequences
D1D2

Numerical Derivatives of (x,y) Data via Smoothing Splines
diagX

The “Other” Diagonal Matrix
inv.seq

Inverse seq() -- Short Expression for Index Vector
capture.and.write

Capture output and Write / Print First and Last Parts
integrate.xy

Cheap Numerical Integration through Data points.
axTexpr

Axis Ticks Expressions in Nice 10 ** k Form
potatoes

Fisher's Potato Crop Data
p.datum

Plot 'Datum' (deutsch!) unten rechts
roundfixS

Round to Integer Keeping the Sum Fixed
p.res.2fact

Plot Numeric (e.g. Residuals) vs 2 Factors Using Boxplots
factorize

Prime Factorization of Integers
is.whole

Test Whether a Vector or Array Consists of Whole Numbers
rot2

Rotate Planar Points by Angle
p.res.2x

Stahel's Residual Plot against 2 X's
ps.latex

PostScript/PDF Preview Device with Optional ‘LaTeX’ Touch
ps.end

Close PostScript or Acrobat Graphics Device opened by 'ps.do' / 'pdf.do'
str_data

Overview on All Datasets in an R Package
u.Datumvonheute

Datum und Uhrzeit (auf deutsch)
digitsBase

Digit/Bit Representation of Integers in any Base
rotn

Generalized Rot13 Character Translation (Rotation)
xy.grid

Produce regular grid matrix.
compresid2way

Plot Components + Residuals for Two Factors
p.tachoPlot

Draw Symbol on a Plot
xy.unique.x

Uniqify (X,Y) Values using Weights
Deprecated

Deprecated 'sfsmisc' Functions
diagDA

Diagonal Discriminant Analysis
u.log

(Anti)Symmetric Log High-Transform
hatMat

Hat Matrix of a Smoother
p.ts

plot.ts with multi-plots and Auto-Title -- on 1 page
pmax.sa

Parallel Maxima / Minima (Scalar, Array)
cairoSwd

Cairo PDF Graphics Device useful for Sweave
tkdensity

GUI Density Estimation using Tcl/Tk
col01scale

Matrix Scaling Utilities
printTable2

Add and Print Marginals for 2-way Contingency Tables
f.robftest

Robust F-Test: Wald test for multiple coefficients of rlm() Object.
linesHyperb.lm

Plot Confidence or Prediction Hyperbolas around a Regression Line
mat2tex

Produce LaTeX commands to print a matrix
nearcor

Find the Nearest Proper Correlation Matrix
mult.fig

Plot Setup for MULTiple FIGures, incl. Main Title
seqXtend

Sequence Covering the Range of X, including X
u.sys

'Portable' System function (R / S-plus)
wrapFormula

Enhance Formula by Wrapping each Term, e.g., by "s(.)"
uniqueL

A Reversable Version of unique()
TA.plot

Tukey-Anscombe Plot (Residual vs. Fitted) of a Linear Model
rrange

Robust Range using Boxplot 'Quartiles'
tapplySimpl

More simplification in tapply() result
AsciiToInt

Character to and from Integer Codes Conversion
missingCh

Has a Formal Argument been Set or is it Missing?
pretty10exp

Nice 10 ** k Label Expressions
ecdf.ksCI

Plot Empirical Distribution Function With 95% Confidence Curves
plotDS

Plot Data and Smoother / Fitted Values
u.date

Return Date[-Time] String in 'European' Format
quadrant

Give the Quadrant Number of Planar Points
signi

Rounding to Significant Digits
Sys.ps

Return Process Status (Unix 'ps') Information
KSd

Approximate Critical Values for Kolmogorov-Smirnov's D
p.scales

Conversion between plotting scales: usr, cm, symbol
polyn.eval

Evaluate Polynomials
nr.sign.chg

Number of Sign Changes in Sequence
Sys.cpuinfo

Provide Information about the Linux Hardware (CPU, Memory, etc)
eaxis

Extended / Engineering Axis for Graphics
p.profileTraces

Plot a profile.nls Object With Profile Traces
toLatex.numeric

LaTeX or Sweave friendly Formatting of Numbers
empty.dimnames

Empty Dimnames of an Array
loessDemo

Graphical Interactive Demo of loess()
n.code

Convert "Round" Integers to Short Strings and Back
iterate.lin.recursion

Generate Sequence Iterating a Linear Recursion
sessionInfoX

Extended Information About the Current R Session