sfsmisc v1.1-4


Monthly downloads



Utilities from 'Seminar fuer Statistik' ETH Zurich

Useful utilities ['goodies'] from Seminar fuer Statistik ETH Zurich, some of which were ported from S-plus in the 1990's. For graphics, have pretty (Log-scale) axes, an enhanced Tukey-Anscombe plot, combining histogram and boxplot, 2d-residual plots, a 'tachoPlot()', pretty arrows, etc. For robustness, have a robust F test and robust range(). For system support, notably on Linux, provides 'Sys.*()' functions with more access to system and CPU information. Finally, miscellaneous utilities such as simple efficient prime numbers, integer codes, Duplicated(), toLatex.numeric() and is.whole().



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. (See on how I got this into github, including parts of the long history.)

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.


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

Functions in sfsmisc

Name Description
f.robftest Robust F-Test: Wald test for multiple coefficients of rlm() Object.
diagDA Diagonal Discriminant Analysis
D2ss Numerical Derivatives of (x,y) Data (via Smoothing Splines)
Deprecated Deprecated 'sfsmisc' Functions
TA.plot Tukey-Anscombe Plot (Residual vs. Fitted) of a Linear Model
ecdf.ksCI Plot Empirical Distribution Function With 95% Confidence Curves
empty.dimnames Empty Dimnames of an Array
n.code Convert "Round" Integers to Short Strings and Back
mult.fig Plot Setup for MULTiple FIGures, incl. Main Title
p.arrows Prettified Arrows Plots
nr.sign.chg Number of Sign Changes in Sequence
diagX The “Other” Diagonal Matrix
digitsBase Digit/Bit Representation of Integers in any Base
factorize Prime Factorization of Integers
eaxis Extended / Engineering Axis for Graphics
p.scales Conversion between plotting scales: usr, cm, symbol
errbar Scatter Plot with Error Bars
funEnv List-like Environment of Functions (and More)
p.tachoPlot Draw Symbol on a Plot
p.res.2fact Plot Numeric (e.g. Residuals) vs 2 Factors Using Boxplots
p.ts plot.ts with multi-plots and Auto-Title -- on 1 page
p.res.2x Stahel's Residual Plot against 2 X's
p.datum Plot 'Datum' (deutsch!) unten rechts
last Get Last Elements of a Vector
iterate.lin.recursion Generate Sequence Iterating a Linear Recursion
paste.vec Utility for 'Showing' S vectors
ellipsePoints Compute Radially Equispaced Points on Ellipse
hatMat Hat Matrix of a Smoother
u.assign0 'Portable' assign / get functions (R / S-plus) for 'Frame 0'
AsciiToInt Character to and from Integer Codes Conversion
str_data Overview on All Datasets in an R Package
sourceAttach Source and Attach an R source file
inv.seq Inverse seq() -- Short Expression for Index Vector
u.boxplot.x Utility Returning x-Coordinates of Boxplot
vcat Paste Utilities -- Concatenate Strings
D1D2 Numerical Derivatives of (x,y) Data via Smoothing Splines
p.dnorm Plot Parametric Density Functions
lseq Generate Sequences, Equidistant on Log Scale
is.whole Test Whether a Vector or Array Consists of Whole Numbers
histBxp Plot a Histogram and a Boxplot
missingCh Has a Formal Argument been Set or is it Missing?
integrate.xy Cheap Numerical Integration through Data points.
wrapFormula Enhance Formula by Wrapping each Term, e.g., by "s(.)"
ps.latex PostScript/PDF Preview Device with Optional ‘LaTeX’ Touch
plotDS Plot Data and Smoother / Fitted Values
mat2tex Produce LaTeX commands to print a matrix
linesHyperb.lm Plot Confidence or Prediction Hyperbolas around a Regression Line
plotStep Plot a Step Function
mpl Simple Matrix Plots
loessDemo Graphical Interactive Demo of loess()
potatoes Fisher's Potato Crop Data
n.plot Name Plot: Names or Numbers instead of Points in Plot
p.hboxp Add a Horizontal Boxplot to the Current Plot
pretty10exp Nice 10 ** k Label Expressions
quadrant Give the Quadrant Number of Planar Points
sfsmisc-defunct Defunct Functions in Package sfsmisc
primes Find all Primes Less Than n
rotn Generalized Rot13 Character Translation (Rotation)
printTable2 Add and Print Marginals for 2-way Contingency Tables
p.profileTraces Plot a profile.nls Object With Profile Traces
tapplySimpl More simplification in tapply() result
read.org.table Read.table for an Emacs Org Table
repChar Make Simple String from Repeating a Character, e.g. Blank String
tkdensity GUI Density Estimation using Tcl/Tk
signi Rounding to Significant Digits
u.log (Anti)Symmetric Log High-Transform
nearcor Find the Nearest Proper Correlation Matrix
rot2 Rotate Planar Points by Angle
seqXtend Sequence Covering the Range of X, including X
u.sys 'Portable' System function (R / S-plus)
roundfixS Round to Integer Keeping the Sum Fixed
rrange Robust Range using Boxplot 'Quartiles'
u.date Return Date[-Time] String in 'European' Format
polyn.eval Evaluate Polynomials
posdefify Find a Close Positive Definite Matrix
sessionInfoX Extended Information About the Current R Session
toLatex.numeric LaTeX or Sweave friendly Formatting of Numbers
u.datumdecode Convert “Numeric” Dates
u.Datumvonheute Datum und Uhrzeit (auf deutsch)
prt.DEBUG Utility Printing in DEBUG mode
ps.end Close PostScript or Acrobat Graphics Device opened by 'ps.do' / 'pdf.do'
unif Nice Uniform Points in Interval
uniqueL A Reversable Version of unique()
xy.grid Produce regular grid matrix.
xy.unique.x Uniqify (X,Y) Values using Weights
axTexpr Axis Ticks Expressions in Nice 10 ** k Form
cairoSwd Cairo PDF Graphics Device useful for Sweave
QUnif Quasi Randum Numbers via Halton Sequences
capture.and.write Capture output and Write / Print First and Last Parts
col01scale Matrix Scaling Utilities
compresid2way Plot Components + Residuals for Two Factors
cum.Vert.funkt Kumulative Verteilung Aufzeichnen
Duplicated Counting-Generalization of duplicated()
KSd Approximate Critical Values for Kolmogorov-Smirnov's D
No Results!

Last month downloads


Include our badge in your README