Learn R Programming

flowFit (version 1.10.0)

logTicks: Generate logTicks for FACS plotting

Description

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

Usage

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

Examples

Run this code

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)
}

Run the code above in your browser using DataLab