| plot.hdpGLM | R Documentation | 
Generic function to plot the posterior density estimation produced by the function hdpGLM
## S3 method for class 'hdpGLM'
plot(
  x,
  terms = NULL,
  j.label = NULL,
  j.idx = NULL,
  title = NULL,
  subtitle = NULL,
  true.beta = NULL,
  ncol = NULL,
  legend.position = "bottom",
  display.terms = TRUE,
  context.id = NULL,
  ylab = NULL,
  xlab = NULL,
  x.axis.size = 1.1,
  y.axis.size = 1.1,
  title.size = 1.2,
  panel.title.size = 1.5,
  legend.size = 1.1,
  rel.height = 0.01,
  fill.col = "#00000044",
  border.col = "white",
  ...
)
x | 
 an object of the class   | 
terms | 
 string vector with the name of the individual-level covariates to plot. If   | 
j.label | 
 string vector with the names of the contexts to plot. An alternative is to use the context indexes with the parameter   | 
j.idx | 
 integer vector with the index of the contexts to plot. An alternative is to use the context labels with the parameter   | 
title | 
 string, the title of the plot  | 
subtitle | 
 string, the subtitle of the plot  | 
true.beta | 
 a   | 
ncol | 
 interger, the number of columns in the plot  | 
legend.position | 
 one of four options: "bottom" (default), "top", "left", or "right". It indicates the position of the legend  | 
display.terms | 
 boolean, if   | 
context.id | 
 string with the name of the column containing the labels identifying the contexts. This variable should have been specified when the estimation was conducted using the function   | 
ylab | 
 string, the label of the y-axis  | 
xlab | 
 string, the label of the x-axis  | 
x.axis.size | 
 numeric, the relative size of the label in the x-axis  | 
y.axis.size | 
 numeric, the relative size of the label in the y-axis  | 
title.size | 
 numeric, the relative size of the title of the plot  | 
panel.title.size | 
 numeric, the relative size of the titles in the panel of the plot  | 
legend.size | 
 numeric, the relative size of the legend  | 
rel.height | 
 see ggridges::geom_density_ridges  | 
fill.col | 
 string with the color of the densities  | 
border.col | 
 string with the color of the border of the densities  | 
... | 
 Additional arguments accepted are: 
 
  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.