plot_points: plot_points

Description Usage Arguments Examples

View source: R/plot_points.R

Description

plot total regulators versus ORFs per genome

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_points(
  data,
  type = "general",
  x,
  y,
  filename = "figure.tiff",
  title = "",
  xlab = "",
  ylab = "",
  ymax = 200,
  model.degree = 1
)

Arguments

data

A data.frame object

type

either "general" or "groups" for plotting per phylogenetic group

x

variable name

y

variable name

filename

file name with .tiff extension

title

plot title

xlab

x-axis title

ylab

y-axis title

ymax

A number setting the ylab superior limit.

model.degree

Degrees for the polynomial regression model. By default model.degree = 1.

Examples

1
2
plot_points(data = data_kos_sigma, type = "general", filename = "example_general.tiff", title = "Sigma factors", ylab = "Sigma factors per genome", ymax = 120)
plot_points(data = data_kos_sigma, type = "groups", filename = "example_groups.tiff", title = "Sigma factors", ylab = "Sigma factors per genome", ymax = 120 )

josschavezf/erba documentation built on May 2, 2021, 7:33 a.m.