Cristian cristian wrote:
Hi all,
I'm an R newbie,
I did this script to create a scatterplot using the tree matrix from
datasets package:
library('datasets')
with(trees,
{
plot(Height, Volume, pch=3, xlab=Height, ylab=Volume)
symbols(Height, Volume, circles=Girth/12, fg=grey,
Hi Christian,
You could use the ggplot2 package (http://had.co.nz/ggplot2) which
takes care of many of these details for you:
qplot(Height, Volume, data=trees, size = Girth)
qplot(Height, Volume, data=trees, size = Girth, colour=Height)
You can find more details on the website about how to
Hi all,
I'm an R newbie,
I did this script to create a scatterplot using the tree matrix from
datasets package:
library('datasets')
with(trees,
{
plot(Height, Volume, pch=3, xlab=Height, ylab=Volume)
symbols(Height, Volume, circles=Girth/12, fg=grey, inches=FALSE,
add=FALSE)
}
)
I'd like to use
Here is a function that will generate a color sequence for an input
vector, You can specify the colors to use, the range and the number
of color steps:
# specify the colors and the number of increments you want for a specified
# range. It will return the colors for the input vector
# specify