seminr_theme_create: Create a theme for a seminr graph visualization

View source: R/theme.R

seminr_theme_createR Documentation

Create a theme for a seminr graph visualization

Description

All customizable options are parameters of this function. See the details all the way down for more information.

Usage

seminr_theme_create(
  plot.title.fontsize = 24,
  plot.title.fontcolor = "black",
  plot.fontname = "helvetica",
  plot.splines = TRUE,
  plot.rounding = 3,
  plot.adj = FALSE,
  plot.specialcharacters = TRUE,
  plot.randomizedweights = FALSE,
  plot.bgcolor = "transparent",
  mm.node.color = "dimgrey",
  mm.node.fill = "white",
  mm.node.label.fontsize = 8,
  mm.node.label.fontcolor = "black",
  mm.edge.positive.color = "dimgrey",
  mm.edge.negative.color = "dimgrey",
  mm.edge.positive.style = "solid",
  mm.edge.negative.style = "dashed",
  mm.edge.label.fontsize = 7,
  mm.edge.label.fontcolor = "black",
  mm.edge.label.show = TRUE,
  mm.edge.minlen = 1,
  mm.edge.width_multiplier = 3,
  mm.edge.width_offset = 0.5,
  mm.edge.use_outer_weights = TRUE,
  mm.edge.boot.show_t_value = FALSE,
  mm.edge.boot.show_p_value = FALSE,
  mm.edge.boot.show_p_stars = TRUE,
  mm.edge.boot.show_ci = FALSE,
  mm.edge.boot.template = edge_template_minimal(),
  sm.node.color = "black",
  sm.node.fill = "white",
  sm.node.label.fontsize = 12,
  sm.node.label.fontcolor = "black",
  sm.node.endo.template = node_endo_template_default(),
  sm.node.exo.template = node_exo_template_default(),
  sm.edge.boot.show_t_value = FALSE,
  sm.edge.boot.show_p_value = FALSE,
  sm.edge.boot.show_p_stars = TRUE,
  sm.edge.boot.show_ci = TRUE,
  sm.edge.boot.template = edge_template_default(),
  sm.edge.positive.color = "black",
  sm.edge.negative.color = "black",
  sm.edge.positive.style = "solid",
  sm.edge.negative.style = "dashed",
  sm.edge.label.fontsize = 9,
  sm.edge.label.fontcolor = "black",
  sm.edge.label.show = TRUE,
  sm.edge.label.all_betas = TRUE,
  sm.edge.minlen = NA_integer_,
  sm.edge.width_offset = 0.5,
  sm.edge.width_multiplier = 5,
  construct.reflective.shape = "ellipse",
  construct.reflective.arrow = "backward",
  construct.reflective.use_weights = FALSE,
  construct.compositeA.shape = "hexagon",
  construct.compositeA.arrow = "backward",
  construct.compositeA.use_weights = FALSE,
  construct.compositeB.shape = "hexagon",
  construct.compositeB.arrow = "forward",
  construct.compositeB.use_weights = TRUE,
  manifest.reflective.shape = "box",
  manifest.compositeA.shape = "box",
  manifest.compositeB.shape = "box",
  ...
)

Arguments

plot.title.fontsize

Font size of the title.

plot.title.fontcolor

Fontcolor of the title of the plot.

plot.fontname

Font to be used throughout the plot.

plot.splines

Whether or not to use splines as edges (default = TRUE).

plot.rounding

The amount of decimals to keep for rounding (default = 3).

plot.adj

TRUE or FALSE (default). Whether or not to use adjusted r^2 in constructs.

plot.specialcharacters

Whether or not to use greek UTF-8 symbols in plots.

plot.randomizedweights

TRUE or FALSE (default), decides whether to add. minimal random weights to the measurement model. Can help with determinism in plot outcomes.

plot.bgcolor

The background color of the plot (default = "transparent").

mm.node.color

Color of the measurement model nodes.

mm.node.fill

Fill of the measurement model nodes.

mm.node.label.fontsize

Font size of the measurement model node labels.

mm.node.label.fontcolor

Color of the measurement model node labels.

mm.edge.positive.color

Color of the measurement model edges, when values are positive.

mm.edge.negative.color

Color of the measurement model edges, when values are negative.

mm.edge.positive.style

Style of the measurement model edges, when values are positive.

mm.edge.negative.style

Style of the measurement model edges, when values are negative.

mm.edge.label.fontsize

Font size of the measurement model edge labels.

mm.edge.label.fontcolor

Font color of the measurement model edge labels.

mm.edge.label.show

Whether or not to show measurement model edge labels.

mm.edge.minlen

Minimum length of the measurement model edges.

mm.edge.width_multiplier

The multiplier for measurement model edge penwidth (default = 3).

mm.edge.width_offset

The minimal width of an edge of the measurement model (default = 0.5).

mm.edge.use_outer_weights

Whether or not to use outer weights as edge labels in the measurement model.

mm.edge.boot.show_t_value

Should boot-strapped loadings/weights show a t-value

mm.edge.boot.show_p_value

Should boot-strapped loadings/weights show a p-value

mm.edge.boot.show_p_stars

Should boot-strapped loadings/weights show significance stars

mm.edge.boot.show_ci

Should boot-strapped loadings/weights show a 95 percent confidence interval

mm.edge.boot.template

A template string for HTML formatting of edges for loadings/weights

sm.node.color

Color of the structural model nodes.

sm.node.fill

Fill of the structural model nodes.

sm.node.label.fontsize

Font size of the structural model node labels.

sm.node.label.fontcolor

Font color of the structural model node labels.

sm.node.endo.template

A template string for the nodes of endogenous constructs

sm.node.exo.template

A template string for the nodes of exogenous constructs

sm.edge.boot.show_t_value

Should boot-strapped path coefficients show a t-value

sm.edge.boot.show_p_value

Should boot-strapped path coefficients show a p-value

sm.edge.boot.show_p_stars

Should boot-strapped path coefficients show significance stars

sm.edge.boot.show_ci

Should boot-strapped path coefficients show a 95 percent confidence interval

sm.edge.boot.template

A template string for HTML formatting of edges

sm.edge.positive.color

Color of the structural model edges, when values are positive.

sm.edge.negative.color

Color of the structural model edges, when values are negative.

sm.edge.positive.style

Style of the structural model edges, when values are positive.

sm.edge.negative.style

Style of the structural model edges, when values are negative.

sm.edge.label.fontsize

Font size of the structural model edge labels.

sm.edge.label.fontcolor

Font color of the structural model edge labels.

sm.edge.label.show

Whether or not to show edge labels on structural model edges.

sm.edge.label.all_betas

Whether to label both endogenous and exogenous paths with a beta (default = TRUE).

sm.edge.minlen

Minimum length of the structural model edges.

sm.edge.width_offset

The minimal width of an edge of the structural model (default = 0.5).

sm.edge.width_multiplier

The multiplier for structural model edges (default = 5).

construct.reflective.shape

Dot shape of reflective constructs

construct.reflective.arrow

Direction of the arrow for reflective constructs. Can be forward, backward (default), or none.

construct.reflective.use_weights

Should measurements from reflective constructs show weights (TRUE) or loadings (FALSE: default).

construct.compositeA.shape

Dot shape of composite constructs using correlation weights

construct.compositeA.arrow

Direction of the arrow for constructs using correlation weight (default: backward)

construct.compositeA.use_weights

Should measurements from constructs using correlation weights show weights (TRUE) or loadings (FALSE: default).

construct.compositeB.shape

Dot shape of composite constructs using regression weights

construct.compositeB.arrow

Direction of the arrow for constructs using regression weights (default: forward)

construct.compositeB.use_weights

Should measurements from constructs using regression weights show weights (TRUE: default) or loadings (FALSE).

manifest.reflective.shape

Dot shape of manifest variables of reflective constructs

manifest.compositeA.shape

Dot shape of manifest variables of composite constructs using correlation weights

manifest.compositeB.shape

Dot shape of manifest variables of composite constructs using regression weights

...

additional parameters (unused)

Details

You can use the auto-complete feature of your editor to help you find the right parameter.

General settings start with plot.*

Measurement model settings start with mm.*

Structural model settings start with sm.*

Setting the shape of manifest or construct variables depending on their estimation type can be found under manifest.* and construct.*

Value

A seminr.theme object that can be supplied to dot_graph


seminr documentation built on Oct. 13, 2022, 1:05 a.m.