myColorRamp: Color Ramp

Description Usage Arguments Value Source See Also Examples

View source: R/RegressionLibs.R

Description

Function that transforms a list of values in their corresponding color in the given list.

Usage

1

Arguments

colors

a list of name colors.

values

an object of class data frame with a dependent variable.

Value

a list colors in HEX format.

Source

http://stackoverflow.com/questions/10413678/how-to-assign-color-scale-to-a-variable-in-a-3d-scatter-plot

See Also

Plot3D

Examples

1
2
3
4
5
6
7
#This function is used by Plot3D
#Example 1
iris.x <- iris[,1:4] # These are the independent variables
Species <- iris[,5] # This is the dependent variable

# 3D Plot of 3 first columns of data set
Plot3D(iris.x, c(1,2,3), Species)

mariytu/RegressionLibs documentation built on May 21, 2019, 11:47 a.m.