abf_plot_td: Plot abf objects in time domain.

Description Usage Arguments Details Value

Description

Plot abf objects in time domain.

Usage

1
2
3
abf_plot_td(abf, intv = NULL, channel, episode, concat_epi,
  sample_ratio = 1L, sample_func = "mean", sample_colFunc = NULL,
  ..., time_unit = "tick", colour = TRUE)

Arguments

abf

an abf object/list of abf objects.

intv

an INDEX intv to sample abf.

channel

channels to map.

episode

episodes to group.

concat_epi

wheter to concatenate all episodes.

sample_ratio

sample ratio.

sample_func

sample function.

sample_colFunc

a sample column function.

...

passed to sample_func().

time_unit

a time unit passed to TickToTime().

colour

whether to plot in coloured mode.

Details

This is a low-level plotting function that returns a ggplot object with plotting data generated by MeltAbf() and aesthetics properly mapped.

If only one channel is provided, a "wide" format data.frame is generated and y is mapped to the channel. If multiple channel is provided, a "long" data.frame is generated and y is mapped to "value" column.

Since this is a low-level function, there is no data validation or sanity check performed. Use with caution.

Value

a ggplot object.


Crystal-YWu/abftools documentation built on May 10, 2019, 8:22 a.m.