color.scale {GoodFibes}R Documentation

A simple wrapper to create colors for a continuous variable

Description

For any continuous variable like fiber length, produces a vector that can be used in plotting functions for the col argument. Uses colorRampPalette.

Usage

color.scale(fl, color1, color2)

Arguments

fl

A numeric vector containing a measurement for each fiber in a fiber list.

color1

A character value for the color for small values of the variable

color2

A character value for the color for large values of the variable

Value

A vector with color values for each fiber

See Also

muscle.plot.stl

Examples


data(ant.final)
fl<-fiber.lengths(ant.final, res = 0.000673107, df=1)

cols<-color.scale(fl, "blue", "green")
muscle.plot.stl(ant.final, res = 0.000673107, cols = cols, mirror.axis = TRUE, df=1)


[Package GoodFibes version 0.1.10 Index]