Learn R Programming

ellipse

ellipse contains ellipse drawing routines designed for pairwise confidence regions, including distorted ellipses for nonlinear regression regions. It also includes a routine plotcorr() for plotting correlation matrices using ellipses.

Installation

It is on CRAN, and can be installed using

install.packages("ellipse")

You can install the development version of ellipse from GitHub with:

# install.packages("devtools")
devtools::install_github("dmurdoch/ellipse")

Example

Plot approximate pairwise confidence regions and profile trace plots for a nonlinear fit:

data(Puromycin)
Purboth <- nls(formula = rate ~ ((Vm + delV * (state == "treated"))
   * conc)/(K + conc), data = Puromycin,
   start = list(Vm = 160, delV = 40, K = 0.05))
Pur.prof <- profile(Purboth)
ellipse::pairs(Pur.prof)

The plotcorr() function can plot a matrix of ellipses:

library(ellipse)
#> 
#> Attaching package: 'ellipse'
#> The following object is masked from 'package:graphics':
#> 
#>     pairs
corr.mtcars <- cor(mtcars)
ord <- order(corr.mtcars[1,])
xc <- corr.mtcars[ord, ord]
colors <- c("#A50F15","#DE2D26","#FB6A4A","#FCAE91","#FEE5D9","white",
            "#EFF3FF","#BDD7E7","#6BAED6","#3182BD","#08519C")   
plotcorr(xc, col=colors[5*xc + 6])

Copy Link

Version

Install

install.packages('ellipse')

Monthly Downloads

81,958

Version

0.5.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 20th, 2023

Functions in ellipse (0.5.0)

ellipse

Make an ellipse
plotcorr

Plot correlation matrix ellipses
ellipse.nls

Outline an approximate pairwise confidence region
pairs_profile

Profile pairs
ellipse.lm

Outline a pairwise confidence region for a linear model fit.
ellipse-package

Functions for drawing ellipses and ellipse-like confidence regions
ellipse.glm

Outline an approximate pairwise confidence region
ellipse.profile

Pairwise profile sketch
ellipse.profile.nls

Pairwise profile sketch
ellipse.arima0

Outline an approximate pairwise confidence region
ellipse.profile.glm

Pairwise profile sketch for GLM profiles