plot,PROsetta_data,ANY-method {PROsetta}R Documentation

Plot frequency distribution

Description

This is an extension of plot to visualize frequency distribution from PROsetta_data object.

Usage

## S4 method for signature 'PROsetta_data,ANY'
plot(
  x,
  y,
  scale_id = "combined",
  filename = NULL,
  title = NULL,
  xlim = NULL,
  color = "blue",
  nbar = 20,
  rug = FALSE,
  filetype = "pdf",
  savefile = FALSE,
  bg = "white",
  width = 6,
  height = 6,
  pointsize = 12
)

Arguments

x

a PROsetta_data object.

y

unused argument, exists for compatibility with plot in the base R package.

scale_id

scale ID to plot. combined (default) represents the combined scale.

filename

filename to write if 'savefile' argument is TRUE.

title

the title of the figure.

xlim

the range of scores to plot.

color

the color to fill the histogram.

nbar

the number of histogram bars.

rug

if TRUE, display the actual distribution of scores below each bar.

filetype

the type of file to write if 'savefile' argument is TRUE. Accepts 'pdf', 'jpeg', 'png', and 'tiff'.

savefile

if TRUE, save the figure as a file.

bg

the background color of the plot.

width

the width of the plot.

height

the height of the plot.

pointsize

point size to pass onto file writing functions.

Examples

plot(data_asq)
plot(data_asq, scale_id = 1)
plot(data_asq, scale_id = 2)


[Package PROsetta version 0.3.5 Index]