lc.overplot: Overplot Light Curves

Description Usage Arguments Value Author(s) Examples

View source: R/plotting.r

Description

Creates a plot of the source and background of two light curves

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
lc.overplot(
  lc1,
  lc2,
  xlab = "Time [s]",
  y1lab = "Rate [count/s]",
  y2lab = "Rate [count/s]",
  plt.title = "LC1 vs LC2",
  bg1 = FALSE,
  bg2 = FALSE,
  names = c("lc1", "lc2")
)

Arguments

lc1

required data frame: Light curve data frame with structure: TIME, TIMED, RATE, ERROR, BACKV, BACKE

lc2

required data frame: Light curve data frame with structure: TIME, TIMED, RATE, ERROR, BACKV, BACKE

xlab

optional string: X axis label

y1lab

optional string: Left Y axis label

y2lab

optional string: Right Y axis label

plt.title

optional string: Plot title

bg1

optional boolean: If TRUE plot the background of the first light curve, defaults to FALSE

bg2

optional boolean: If TRUE plot the background of the second light curve, defaults to FALSE

names

optional list of strings: Names for the two light curves

Value

Plot of the source and background light curve

Author(s)

Derek Blue

Examples

1
2
3
4
5
## Not run: 
plt <- lc.plot(lightcurve)
plot(plt)

## End(Not run)

Starkiller4011/AstroR documentation built on Aug. 24, 2020, 12:41 p.m.