facet_chart: Facet Chart

Description Usage Arguments Value See Also Examples

View source: R/facet_chart.R

Description

Creates a facet chart, showing the facets of a test.

Usage

1
2
3
4
5
6
7
facet_chart(data, subradius, filename = "myipv.pdf", size = 1,
  font = "sans", rotate_radians = 0, rotate_degrees = 0, filewidth = 10,
  fileheight = 10, colour = "black", fade = 85, tick = 0.1,
  cor_labels = TRUE, rotate_title_radians = 0, rotate_title_degrees = 0,
  size_cor_labels = 1, size_test_label = 1, size_facet_labels = 1,
  width_axes = 1, width_circles = 1, width_tick = 1,
  size_tick_label = 1, size_center_dot = 1)

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.

filename

character; name of the file to save. Supported formats are: "pdf" (best quality with lowest file size), "png", "jpeg". Use "none" to suppress file output; defaults to "myipv.pdf".

size

integer; smartly scaled size of chart objects.

font

character; text font; defaults to 'sans' (use extrafonts to install additional fonts).

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.

filewidth

integer; width of the graphic in inches; defaults to 10, dpi is 3000 for pdf files and 500 for png and jpeg files.

fileheight

integer; height of the graphic in inches; defaults to 10, dpi is 3000 for pdf files and 500 for png and jpeg files.

colour

character; name of the accent colour.

fade

integer; brightness of the gray tones between 0 (black) and 100 (white) in steps of 1; defaults to 85.

tick

numeric; axis tick position; defaults to .1.

cor_labels

logical; if TRUE, draws latent correlations between facets as text.

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.

size_cor_labels

integer; font size of the latent correlations between facets (relative to default).

size_test_label

integer; font size of the test label (relative to default).

size_facet_labels

integer; font size of the facet labels (relative to default).

width_axes

integer; width of the radial axis lines indicating center distances (relative to default).

width_circles

integer; width of the circle outlines (relative to default).

width_tick

integer; width of the dotted axis tick line (relative to default).

size_tick_label

integer; font size of the axis tick label (relative to default).

size_center_dot

integer; size of the center dot marking the origin (relative to default).

Value

Object of the class "ggplot" and optionally the same object saved as a file.

See Also

item_chart nested_chart

Examples

1
2
# as simple as that
facet_chart(SMTQ, subradius = .6)

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