Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotPDFsOLE.R
\name{PlotPDFsOLE}
\alias{PlotPDFsOLE}
\title{Plotting two probability density gaussian functions and the optimal linear
estimation (OLE) as result of combining them.}
\usage{
PlotPDFsOLE(pdf_1, pdf_2, nsigma = 3, plotfile = NULL, width = 30,
height = 15, units = "cm", dpi = 300)
}
\arguments{
\item{pdf_1}{A numeric array with a dimension named 'statistic', containg
two parameters: mean' and 'standard deviation' of the first gaussian pdf
to combining.}
\item{pdf_2}{A numeric array with a dimension named 'statistic', containg
two parameters: mean' and 'standard deviation' of the second gaussian pdf
to combining.}
\item{nsigma}{(optional) A numeric value for setting the limits of X axis.
(Default nsigma = 3).}
\item{plotfile}{(optional) A filename where the plot will be saved.
(Default: the plot is not saved).}
\item{width}{(optional) A numeric value indicating the plot width in
units ("in", "cm", or "mm"). (Default width = 30).}
\item{height}{(optional) A numeric value indicating the plot height.
(Default height = 15).}
\item{units}{(optional) A character value indicating the plot size
unit. (Default units = 'cm').}
\item{dpi}{(optional) A numeric value indicating the plot resolution.
(Default dpi = 300).}
}
\value{
PlotPDFsOLE() returns a ggplot object containing the plot.
}
\description{
This function plots two probability density gaussian functions
and the optimal linear estimation (OLE) as result of combining them.
}
\examples{
Example for PlotPDFs function
pdf_1 <- c(1.1,0.6)
attr(pdf_1, "name") <- "NAO1"
dim(pdf_1) <- c(statistic = 2)
pdf_2 <- c(1,0.5)
attr(pdf_2, "name") <- "NAO2"
dim(pdf_2) <- c(statistic = 2)
PlotPDFsOLE(pdf_1, pdf_2)
}
\author{
Eroteida Sanchez-Garcia - AEMET, //email{esanchezg@aemet.es}
}