color.scale | R Documentation |
For any continuous variable like fiber length, produces a vector that can be used in plotting functions for the col argument. Uses colorRampPalette.
color.scale(fl, color1, color2)
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 |
A vector with color values for each fiber
muscle.plot.stl
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.