plot_signature_curves {coda4microbiome}R Documentation

plot_signature_curves

Description

Graphical representation of the signature trajectories

Usage

plot_signature_curves(
  varNum,
  coeff,
  x,
  y,
  x_time,
  subject_id,
  ini_time,
  end_time,
  color = c("chocolate1", "slateblue2"),
  showLabel = TRUE,
  location = "bottomright",
  inset = c(0.01, 0.02),
  cex = 0.8,
  y.intersp = 0.7,
  main_title = NULL
)

Arguments

varNum

column number of the variables (taxa)

coeff

coefficients (coefficients must sum-up zero)

x

microbiome abundance matrix in long format

y

binary outcome; data type: numeric, character or factor vector

x_time

observation times

subject_id

subject id

ini_time

initial time to be analyzed

end_time

end time to be analyzed

color

color graphical parameter

showLabel

graphical parameter (see help(label))

location

graphical parameter (see help(label))

inset

graphical parameter (see help(label))

cex

graphical parameter (see help(label))

y.intersp

graphical parameter (see help(label))

main_title

title plot

Value

trajectories plot

Author(s)

M. Calle - T. Susin

Examples


x=matrix(c(2, 3, 4, 1, 2, 5, 10, 20, 15, 30, 40, 12), ncol=2)
x_time = c(0,10,20,1,15, 25)
subject_id = c(1,1,1,2,2,2)
y=c(0,0,0,1,1,1)
plot_signature_curves(varNum=c(1,2), coeff=c(1,-1), x, y,x_time, subject_id,
                       ini_time=0, end_time=25)


[Package coda4microbiome version 0.2.3 Index]