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. (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.

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

15,544

Version

1.1-13

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Maechler

Last Published

April 2nd, 2022

Functions in sfsmisc (1.1-13)

TA.plot

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

Cairo PDF Graphics Device useful for Sweave
Deprecated

Deprecated 'sfsmisc' Functions
AsciiToInt

Character to and from Integer Codes Conversion
Duplicated

Counting-Generalization of duplicated()
D2ss

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

Approximate Critical Values for Kolmogorov-Smirnov's D
D1D2

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

Axis Ticks Expressions in Nice 10 ** k Form
QUnif

Quasi Randum Numbers via Halton Sequences
ecdf.ksCI

Plot Empirical Distribution Function With 95% Confidence Curves
helppdf

help() Type="pdf" and View It
inv.seq

Inverse seq() -- Short Expression for Index Vector
mult.fig

Plot Setup for MULTiple FIGures, incl. Main Title
eaxis

Extended / Engineering Axis for Graphics
mpl

Simple Matrix Plots
digitsBase

Digit/Bit Representation of Integers in any Base
integrate.xy

Cheap Numerical Integration through Data points.
factorize

Prime Factorization of Integers
f.robftest

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

Diagonal Discriminant Analysis
capture.and.write

Capture output and Write / Print First and Last Parts
diagX

The “Other” Diagonal Matrix
histBxp

Plot a Histogram and a Boxplot
errbar

Scatter Plot with Error Bars
col01scale

Matrix Scaling Utilities
empty.dimnames

Empty Dimnames of an Array
compresid2way

Plot Components + Residuals for Two Factors
p.res.2fact

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

Plot a profile.nls Object With Profile Traces
p.tachoPlot

Draw Symbol on a Plot
potatoes

Fisher's Potato Crop Data
is.whole

Test Whether a Vector or Array Consists of Whole Numbers
last

Get Last Elements of a Vector
p.ts

plot.ts with multi-plots and Auto-Title -- on 1 page
linesHyperb.lm

Plot Confidence or Prediction Hyperbolas around a Regression Line
printTable2

Add and Print Marginals for 2-way Contingency Tables
pretty10exp

Nice 10 ** k Label Expressions
rot2

Rotate Planar Points by Angle
primes

Find all Primes Less Than n
nearcor

Find the Nearest Proper Correlation Matrix
iterate.lin.recursion

Generate Sequence Iterating a Linear Recursion
p.datum

Plot 'Datum' (deutsch!) unten rechts
p.arrows

Prettified Arrows Plots
plotDS

Plot Data and Smoother / Fitted Values
sessionInfoX

Extended Information About the Current R Session
read.org.table

Read.table for an Emacs Org Table
plotStep

Plot a Step Function
ellipsePoints

Compute Radially Equispaced Points on Ellipse
relErr

Relative Error When Appropriate, Absolute Otherwise
roundfixS

Round to Integer Keeping the Sum Fixed
sfsmisc-defunct

Defunct Functions in Package sfsmisc
cum.Vert.funkt

Kumulative Verteilung Aufzeichnen
tapplySimpl

More simplification in tapply() result
u.assign0

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

Nice Uniform Points in Interval
u.boxplot.x

Utility Returning x-Coordinates of Boxplot
hatMat

Hat Matrix of a Smoother
p.hboxp

Add a Horizontal Boxplot to the Current Plot
polyn.eval

Evaluate Polynomials
lseq

Generate Sequences, Equidistant on Log Scale
funEnv

List-like Environment of Functions (and More)
p.dnorm

Plot Parametric Density Functions
loessDemo

Graphical Interactive Demo of loess()
nr.sign.chg

Number of Sign Changes in Sequence
mat2tex

Produce LaTeX commands to print a matrix
uniqueL

A Reversable Version of unique()
missingCh

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

Version of packageDescription() as Simple Vector
u.Datumvonheute

Datum und Uhrzeit (auf deutsch)
seqXtend

Sequence Covering the Range of X, including X
toLatex.numeric

LaTeX or Sweave friendly Formatting of Numbers
paste.vec

Utility for 'Showing' S vectors
n.code

Convert "Round" Integers to Short Strings and Back
n.plot

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

Paste Utilities -- Concatenate Strings
rrange

Robust Range using Boxplot 'Quartiles'
wrapFormula

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

Find a Close Positive Definite Matrix
tkdensity

GUI Density Estimation using Tcl/Tk
p.scales

Conversion between plotting scales: usr, cm, symbol
p.res.2x

Stahel's Residual Plot against 2 X's
quadrant

Give the Quadrant Number of Planar Points
prt.DEBUG

Utility Printing in DEBUG mode
ps.latex

PostScript/PDF Preview Device with Optional ‘LaTeX’ Touch
u.datumdecode

Convert “Numeric” Dates
signi

Rounding to Significant Digits
shortRversion

Short R Version String
u.date

Return Date[-Time] String in 'European' Format
u.log

(Anti)Symmetric Log High-Transform
u.sys

'Portable' System function (R / S-plus)
ps.end

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

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

Generalized Rot13 Character Translation (Rotation)
sourceAttach

Source and Attach an R source file
str_data

Overview on All Datasets in an R Package
xy.grid

Produce regular grid matrix.
xy.unique.x

Uniqify (X,Y) Values using Weights