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

11,491

Version

1.1-17

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Maechler

Last Published

February 1st, 2024

Functions in sfsmisc (1.1-17)

capture.and.write

Capture output and Write / Print First and Last Parts
cum.Vert.funkt

Kumulative Verteilung Aufzeichnen
ecdf.ksCI

Plot Empirical Distribution Function With 95% Confidence Curves
compresid2way

Plot Components + Residuals for Two Factors
col01scale

Matrix Scaling Utilities
diagX

The “Other” Diagonal Matrix
ellipsePoints

Compute Radially Equispaced Points on Ellipse
digitsBase

Digit/Bit Representation of Integers in any Base
eaxis

Extended / Engineering Axis for Graphics
diagDA

Diagonal Discriminant Analysis
inv.seq

Inverse seq() -- Short Expression for Index Vector
factorize

Prime Factorization of Integers
errbar

Scatter Plot with Error Bars
histBxp

Plot a Histogram and a Boxplot
hatMat

Hat Matrix of a Smoother
funEnv

List-like Environment of Functions (and More)
empty.dimnames

Empty Dimnames of an Array
helppdf

help() Type="pdf" and View It
is.whole

Test Whether a Vector or Array Consists of Whole Numbers
lseq

Generate Sequences, Equidistant on Log Scale
integrate.xy

Cheap Numerical Integration through Data points.
f.robftest

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

Has a Formal Argument been Set or is it Missing?
iterate.lin.recursion

Generate Sequence Iterating a Linear Recursion
mpl

Simple Matrix Plots
mat2tex

Produce LaTeX commands to print a matrix
last

Get Last Elements of a Vector
linesHyperb.lm

Plot Confidence or Prediction Hyperbolas around a Regression Line
p.hboxp

Add a Horizontal Boxplot to the Current Plot
n.plot

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

Find the Nearest Proper Correlation Matrix
p.profileTraces

Plot a profile.nls Object With Profile Traces
n.code

Convert "Round" Integers to Short Strings and Back
mult.fig

Plot Setup for MULTiple FIGures, incl. Main Title
p.datum

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

Plot Parametric Density Functions
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.scales

Conversion between plotting scales: usr, cm, symbol
paste.vec

Utility for 'Showing' S vectors
p.res.2x

Stahel's Residual Plot against 2 X's
p.tachoPlot

Draw Symbol on a Plot
pkgDesc

Version of packageDescription() as Simple Vector
list_named

Automatically Named list()
printTable2

Add and Print Marginals for 2-way Contingency Tables
nr.sign.chg

Number of Sign Changes in Sequence
p.arrows

Prettified Arrows Plots
loessDemo

Graphical Interactive Demo of loess()
ps.end

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

Nice 10 ** k Label Expressions
plotDS

Plot Data and Smoother / Fitted Values
prt.DEBUG

Utility Printing in DEBUG mode
ps.latex

PostScript/PDF Preview Device with Optional ‘LaTeX’ Touch
sfsmisc-defunct

Defunct Functions in Package sfsmisc
rotn

Generalized Rot13 Character Translation (Rotation)
primes

Find all Primes Less Than n
rot2

Rotate Planar Points by Angle
quadrant

Give the Quadrant Number of Planar Points
shortRversion

Short R Version String
read.org.table

Read.table for an Emacs Org Table
u.date

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

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

Relative Error When Appropriate, Absolute Otherwise
u.boxplot.x

Utility Returning x-Coordinates of Boxplot
u.Datumvonheute

Datum und Uhrzeit (auf deutsch)
plotStep

Plot a Step Function
str_data

Overview on All Datasets in an R Package
seqXtend

Sequence Covering the Range of X, including X
tapplySimpl

More simplification in tapply() result
signi

Rounding to Significant Digits
xy.unique.x

Uniqify (X,Y) Values using Weights
sessionInfoX

Extended Information About the Current R Session
polyn.eval

Evaluate Polynomials
u.assign0

'Portable' assign / get functions (R / S-plus) for 'Frame 0'
u.sys

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

A Reversable Version of unique()
unif

Nice Uniform Points in Interval
u.datumdecode

Convert “Numeric” Dates
sourceAttach

Source and Attach an R source file
posdefify

Find a Close Positive Definite Matrix
vcat

Paste Utilities -- Concatenate Strings
potatoes

Fisher's Potato Crop Data
roundfixS

Round to Integer Keeping the Sum Fixed
u.log

(Anti)Symmetric Log High-Transform
rrange

Robust Range using Boxplot 'Quartiles'
tkdensity

GUI Density Estimation using Tcl/Tk
toLatex.numeric

LaTeX or Sweave friendly Formatting of Numbers
wrapFormula

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

Produce regular grid matrix.
axTexpr

Axis Ticks Expressions in Nice 10 ** k Form
Deprecated

Deprecated 'sfsmisc' Functions
AsciiToInt

Character to and from Integer Codes Conversion
D2ss

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

Quasi Randum Numbers via Halton Sequences
cairoSwd

Cairo PDF Graphics Device useful for Sweave
D1D2

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

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

Counting-Generalization of duplicated()
KSd

Approximate Critical Values for Kolmogorov-Smirnov's D