| Type: | Package |
| Title: | Plot Contour Line |
| Version: | 0.1.0 |
| Author: | Olivia Cheronet |
| Maintainer: | Olivia Cheronet <cheronetolivia@gmail.com> |
| Depends: | KernSmooth (≥ 2.23-15), MASS (≥ 7.3-33) |
| Description: | This function plots a contour line with a user-defined probability and tightness of fit. |
| License: | GPL-2 |
| Encoding: | UTF-8 |
| LazyData: | true |
| NeedsCompilation: | no |
| Packaged: | 2019-05-01 15:37:02 UTC; Olivia |
| Repository: | CRAN |
| Date/Publication: | 2019-05-03 09:50:11 UTC |
PlotContour
Description
This function plots a contour line with a user-defined probability and tightness of fit on an existing plot.
Usage
PlotContour(Data, Probability, BandWidthX,BandWidthY,Colour)
Arguments
Data |
An n by 2 matrix of data points around which the contour will be drawn. |
Probability |
The proportion of points which should be within the contour line drawn. |
BandWidthX |
The tightness of fit of the contour line along the x-axis. This value will be proportional to the scale of the axis. |
BandWidthY |
The tightness of fit of the contour line along the y-axis. This value will be proportional to the scale of the axis. |
Colour |
Colour of the line to be drawn. |
Author(s)
Olivia Cheronet
Examples
#Plot a regular scatter plot
plot(iris$Sepal.Length,iris$Sepal.Width)
#Plot a contour line encompassing 75% of the points
PlotContour(iris[,1:2],0.75,0.5,0.25,"red")