logTicks: Generate logTicks for FACS plotting

Description Usage Arguments Value Author(s) Examples

View source: R/logTicks.R

Description

This function return a log scale to be used on your FACS plots

Usage

1
  logTicks(dataRange, logDecades, doScale = TRUE)

Arguments

dataRange

Range of your data (number of data points in the FACS)

logDecades

Number of log decades in the FACS

doScale

Scale according to dataRange and logDecades: scale.factor = dataRange / logDecades

Value

Return a list with 3 elements:

major

Position of the Major ticks

all

Position of the All ticks

label

Labels for Major Ticks

Author(s)

Davide Rambaldi

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
if(require(flowFitExampleData)){
  # using flowViz

  # load data
  data(PKH26data)

  # plot data
  plot(PKH26data[[1]], "FL2-Height LOG", axes=FALSE, breaks=1024)

  # create ticks
  my.ticks <- logTicks(1024,4)

  # plot your ticks
  axis(1,my.ticks$all,label=FALSE)
  axis(1,at=my.ticks$major,labels=my.ticks$labels)
  axis(2)
}

flowFit documentation built on April 28, 2020, 9:04 p.m.