Re: [R] How to set scale of color scatterplot points relative to a third variable?

2019-07-06 Thread Jim Lemon
Hi Sarah, The size_n_color function in the plotrix package does something like this. To get the colors that you want using "color.scale" in the same package, look at the help page for that function. The values in A1.matrix[,3] probably don't range from 0 to 2, so getting exactly what you want can b

[R] How to set scale of color scatterplot points relative to a third variable?

2019-07-05 Thread Flaherty, Sarah (NIH/NCI) [F] via R-help
Hello Kind and Generous Volunteers, I'm trying to use a scatter plot to visualize three variables: time, radius, and intensity. I would like each point on the scatterplot to be colored according to a gradient, in which red indicates an intensity less than 1, white indicates an intensity of 1, a