plot.polarity: Plots a polarity Object

Description Usage Arguments Value

Description

Plots a polarity object as a heat map Gantt plot with polarity over time (measured in words) and polarity scores per sentence. In the Gantt plot the black dots are the average polarity per grouping variable.

Usage

1
2
3
4
5
6
  ## S3 method for class 'polarity'
 plot(x, bar.size = 5, low = "red",
    mid = "grey99", high = "blue",
    ave.polarity.shape = "+", alpha = 1/4, shape = 19,
    point.size = 2.5, jitter = 0.1, nrow = NULL,
    na.rm = TRUE, ...)

Arguments

x

The polarity object.

bar.size

The size of the bars used in the Gantt plot.

low

The color to be used for lower values.

mid

The color to be used for mid-range values (default is a less striking color).

high

The color to be used for higher values.

ave.polarity.shape

The shape of the average polarity score used in the dot plot.

alpha

Transparency level of points (ranges between 0 and 1).

shape

The shape of the points used in the dot plot.

point.size

The size of the points used in the dot plot.

jitter

Amount of vertical jitter to add to the points.

nrow

The number of rows in the dotplot legend (used when the number of grouping variables makes the legend too wide). If NULL no legend if plotted.

na.rm

logical. Should missing values be removed?

...

ignored

Value

Invisibly returns the ggplot2 objects that form the larger plot.


trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.