plot.lpcde {lpcde} | R Documentation |
Plot method for local polynomial density conditional estimation
Description
The plot method for local polynomial density objects.
A standard ggplot2
object is returned, hence can be used for further customization.
Usage
## S3 method for class 'lpcde'
plot(
...,
alpha = NULL,
type = NULL,
lty = NULL,
lwd = NULL,
lcol = NULL,
pty = NULL,
pwd = NULL,
pcol = NULL,
y_grid = NULL,
CItype = NULL,
CIuniform = FALSE,
CIsimul = 2000,
CIshade = NULL,
CIcol = NULL,
title = NULL,
xlabel = NULL,
ylabel = NULL,
legendTitle = NULL,
legendGroups = NULL,
rbc = FALSE
)
Arguments
... |
Class "lpcde" object, obtained from calling |
alpha |
Numeric scalar between 0 and 1, specifies the significance level for plotting confidence intervals/bands. |
type |
String, one of |
lty |
Line type for point estimates, only effective if |
lwd |
Line width for point estimates, only effective if |
lcol |
Line color for point estimates, only effective if |
pty |
Scatter plot type for point estimates, only effective if |
pwd |
Scatter plot size for point estimates, only effective if |
pcol |
Scatter plot color for point estimates, only effective if |
y_grid |
Numeric vector, specifies a subset of grid points
to plot point estimates. This option is effective only if |
CItype |
String, one of |
CIuniform |
|
CIsimul |
Positive integer, specifies the number of simulations used to construct critical values (default is |
CIshade |
Numeric, specifies the opaqueness of the confidence region, should be between 0 (transparent) and
|
CIcol |
Color of the confidence region. |
title , xlabel , ylabel |
Strings, specifies the title of the plot and labels for the x- and y-axis. |
legendTitle |
String, specifies the legend title. |
legendGroups |
String vector, specifies the group names used in legend. |
rbc |
|
Value
Figure |
A standard |
Author(s)
Matias D. Cattaneo, Princeton University. cattaneo@princeton.edu.
Rajita Chandak (maintainer), Princeton University. rchandak@princeton.edu
Michael Jansson, University of California Berkeley. mjansson@econ.berkeley.edu.
Xinwei Ma, University of California San Diego. x1ma@ucsd.edu.
See Also
lpcde
for local polynomial density estimation.
Supported methods: coef.lpcde
, confint.lpcde
,
plot.lpcde
, print.lpcde
,
summary.lpcde
, vcov.lpcde