coord_facets: Coord Facets

Description Usage Arguments Details Value See Also Examples

View source: R/coord_facets.R

Description

Generates coordinates for a facet chart.

Usage

1
2
coord_facets(data, subradius, rotate_radians = 0, rotate_degrees = 0,
  rotate_title_radians = 0, rotate_title_degrees = 0)

Arguments

data

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

subradius

integer; (arbitrary) radius of the circles representing facets (same unit as center distances), use to avoid circle overlap and optimize appearance.

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.

Details

Use this function in conjunction with plot_facets for simple models.

Use facet_chart to create the chart in a single step.

Rotate or change the size of the circles using this function, not plot_facets.

In a nested model, it is more efficient to use coord_nested instead. It automatically generates coordinates for all factors of the nested model.

Value

List containing coordinates of chart objects.

See Also

plot_facets facet_chart

Examples

1
2
3
4
5
# # creating a facet chart is a two step process, using this function and
# # plot_facets:
# coord <- coord_facets(DSSEI, subradius = .5)
# DSSEI_facets <- plot_facets(coord, filename = "DSSEI_facets")
# DSSEI_facets

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