Description Usage Arguments Value
View source: R/daviz_functions.r
Makes an errorbar plot using the D3.js library with a hover-over effect that highlights all cagtegories that are significantly differnet than the one being hovered over. The orientation of this plot is horizontal rather than vertical
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | sigd3h(
  object,
  term,
  fname,
  height = 500,
  width = 625,
  return_iFrame = TRUE,
  level = 0.95,
  ylab = paste0("Effect of ", term),
  axfont = 12,
  labfont = 12,
  lmexpand = 0.15,
  labfam = c("sans-serif", "serif"),
  colors = c("#B80000", "#000000", "#000000"),
  ptSize = c(7, 5),
  lineSize = c(3, 1.5),
  names = NULL,
  order = c("size-descending", "size-ascending", "natural")
)
 | 
| object | A model that has a categorical predictor.  The function
uses both  | 
| term | The term from the model to be plotted. | 
| fname | Name of the file to which the html code will be written. | 
| height | Height of the plot in pixels | 
| width | Width of the plot in pixels | 
| return_iFrame | Logical indicating whether an  | 
| level | Confidence level at which to do the test (or in the mcmc case, credibility level for the credible intervals). | 
| ylab | Label to put on y-axis. | 
| axfont | Font size for axis tick mark labels (in px). | 
| labfont | Font size for y-axis label (in px). | 
| lmexpand | Factor by which the left-margin should be expanded to accommodate tick mark labels. | 
| labfam | Font-family for y-axis label (must be one of "serif" or "sans-serif"). | 
| colors | Vector of three colors the first for the selected items, the second for the un-selected items and the third for when no points are hovered over. | 
| ptSize | Vector of two point sizes - the first for selected observations and the second for unselected ones. | 
| lineSize | Vector of line widths - the first for selected observations and the second for unselected ones. | 
| names | An optional vector of names for the parameters. | 
| order | How should parameters be organized by size-ascending, size-descending or natural (i.e., the order in the data). | 
Either an html file or an iframe linked to the html file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.