Learn R Programming

shipunov (version 1.17.1)

Miscellaneous Functions from Alexey Shipunov

Description

A collection of functions for data manipulation, plotting and statistical computing, to use separately or with the book "Visual Statistics. Use R!": Shipunov (2020) . Dr Alexey Shipunov died in December 2022. Most useful functions: Bclust(), Jclust() and BootA() which bootstrap hierarchical clustering; Recode() which does multiple recoding in a fast, simple and flexible way; Misclass() which outputs confusion matrix even if classes are not concerted; Overlap() which measures group separation on any projection; Biarrows() which converts any scatterplot into biplot; and Pleiad() which is fast and flexible correlogram.

Copy Link

Version

Install

install.packages('shipunov')

Monthly Downloads

420

Version

1.17.1

License

GPL (>= 2)

Maintainer

Last Published

February 5th, 2023

Functions in shipunov (1.17.1)

Alldups

Finds all duplicates
Class.sample

Samples along the class labels
BootA

Bootstrap clustering
BootKNN

Bootstrap with kNN
DNN

Distance matrix based kNN classification
Ell

Plot ellipse
Bclabels

Plot bootstrap values
Adj.Rand

Adjusted Rand index
Cladd

Adds confidence bands to the simple linear model plots
Ditto

Removes duplicated data values downstream
Aggregate1

Aggregates by one vector and uses it for row names
Dotcharts

Improved dotcharts
CVs

Coefficients of variation
Coeff.det

Average coefficients of determination for each variable
Fill

Fill data values downstream, like in spreadsheets
Biokey

Convert diagnostic keys and classification lists
Hcoords

Calculates coordinates of nodes from 'hclust' plot
Hclust.match

Counts matches between two hierarchical clusterings
Coml

Compare checklists
Bclust

Bootstrapped hclust
Biarrows

Adds correlation arrows to the scatterplot
Classproj

Class projection
Clustergram

Clustergram: visualize the cluster structure
Gap.code

Gap coding
Ex.col

Examples of colors
Ex.font

Examples of fonts
Files

Textual file system browser
Fence

Colorize tips of 'hclust' plot
Gridmoon

Draw with 'R'
BestOverlap

Calculates the best overlap
Cdate

System date, time plus easy save history
BootRF

Bootstrap with 'randomForest()'
NC.dist

Normalized Compression Distance
Normality

Check normality
Infill

Rarefaction curves
Ex.pch

Point examples
Hcl2mat

Clustering to matrix
Ex.plots

Examples of plot types
Cor

Correlation matrix with p-values
Boxplots

Grouped boxplots
Linechart

Dotchart-like plot sfor every scaled variable grouped by factor
Ls

Ls
PlotBest.hclust

Plots dotchart with best clustering method
PlotBest.mdist

Dotchart which reflects the "best" of non-base distances
Misclass

Misclassification (confusion) table
Overlap

Calculates overlap between polygons
Jclust

Simple bootstrap and jackknife clustering
Plot.phylocl

Plot phylogenetic tree with clades collapsed
%-%

Minus names
PlotBest.dist

Dotchart which reflects the "best" base distance method
Ellipses

Confidence ellipses
MDSv

MDS: dimension importance ("explained variance" surrogate)
MRH

Matrix Representation of Hierarchical Clustering
SM.dist

Simple Match distance
Phyllotaxis

Plant phyllotaxis
S.value

S-value
Ex.boxplot

Boxplot explanation
Gen.cl.data

Generates datasets for clustering
Polyarea

Area of the polygon
Polycenter

Center of the polygon
Rpart2newick

Converts 'rpart' object into Newick tree
Gini

Compute the simple Gini coefficient
Rostova.tbl

Calculates multiple correlation matrices (via 'factor1') and stacks them together
Histr

Histogram with overlaid curve
Ploth

Changes the appearance of cluster dendrogram
K

Coefficient of divergence
Hulls

Convex hulls for multiple groups
Points

Number of cases in each location reflected in the point size
Saynodynamite

Say ``no'' to dynamite plots!
Squares

Areas of polygons
Pinhull

Point in hull
Life

Game of Life
Topm

Stacks correlation matrix
Ttcols

Text-to-columns
Recode

Basic multiple recoding
Read.fasta

Read 'FASTA' files
Read.tri.nts

Read 'NTSYSpc' files
Str

'str()' enchanced for data frames
Toclip

Insert content to Linux X11 clipboard
Vicinities

Arrange observations by the distance from center
dolbli

dolbli
Table2df

Convert table to data frame saving structure
Rro.test

Robust rank order test
drosera

drosera
Rresults

Rresults shell script
Pleiad

Correlation circles (correlation pleiads)
Xpager

Separate terminal pager for Linux
Tobin

Binarize (make dummy variables)
chaetocnema

Chaetocnema flea beetles
Write.fasta

Write 'FASTA' files
atmospheres

atmospheres
Root1

Roots phylogenetic trees even if outgroup is not monophyletic
pairwise.Rro.test

Robust rank order test post hoc derivative
pairwise.Eff

Pairwise table of effects with magnitudes
Updist

Educated distances for semi-supervised clustering
hwc

hwc
hrahn

Angiosperm families: morphological characters
Ex.lty

Examples of line types
Gradd

Classification grid and decision boundaries
Ex.margins

Example of plot margins
Gower.dist

Gower distance
Mag

Interpreter for effect sizes
Cor.vec

Calculates correlation and converts results into the named long vector
pairwise.Table2.test

Pairwise Chi-squared or Fisher test for 2-dimensional tables
plantago

plantago
VTcoeffs

Effect sizes of association between categorical variables
salix_leaves

salix_leaves
classifs

Classification lists
keys

Diagnostic keys
Miney

Miney game
moldino

moldino
Pull

Select rows from data frame
MrBayes

Calls MrBayes
R.logo

Imitation (!) of the modern 'R' logo
Missing.map

Textual plot of missing data
Tctext

Easy way to add text labels to 'hclust' plot
Tcoords

Calculates coordinates of tips from 'hclust' plot
haltica

Haltica flea beetles
eq

eq