coord_items: Coord Items

Description Usage Arguments Details Value See Also Examples

View source: R/coord_items.R

Description

Generates coordinates for an item chart.

Usage

1
2
3
coord_items(data, rotate_radians = 0, rotate_degrees = 0,
  rotate_title_radians = 0, rotate_title_degrees = 0, width_items = 1,
  length_items = 1, length_ratio_items = 1.5, dodge_axes = 1)

Arguments

data

list generated by input_excel, or by hand, containing formatted data.

rotate_radians

integer; radian angle to rotate the chart counter-clockwise by; use fractions of pi (e.g. pi/2 = 90 degrees).

rotate_degrees

integer; angle in degrees to rotate the chart counter-clockwise by.

rotate_title_radians

integer; radian angle to rotate the global label counter-clockwise by; use fractions of pi (e.g. pi/2 = 90 degrees).

rotate_title_degrees

integer; angle in degrees to rotate the global label counter-clockwise by.

width_items

integer; width of the item bars (relative to default).

length_items

integer; length of the item bars (relative to default).

length_ratio_items

integer; relative length of every other item bar; defaults to 1.5.

dodge_axes

integer; relative amount of horizontal outward dodge of axis labels.

Details

Use this function in conjunction with plot_items for simple models.

Use item_chart to create the chart in a single step.

Rotate using this function, not plot_items.

In a nested model, it is more efficient to use coord_nested instead. Set prepare_item_charts = TRUE to generate item chart coordinates for all factors of the nested model.

Value

List containing coordinates of chart objects.

See Also

plot_items coord_nested item_chart

Examples

1
2
3
4
5
# # creating an item chart is a two step process, using this function and
# # plot_items:
# coord <- coord_items(DSSEI)
# DSSEI_items <- plot_items(coord, filename = "DSSEI_items")
# DSSEI_items

NilsPetras/IPV documentation built on Dec. 7, 2018, 8:55 a.m.