Change colors in an XY conditioning plot

Hi! I need to change the colors in my XY conditioning plot. I have the following code:
xyplot(Canopy.height ~ Distance, groups=Data, type="l", pch=16,
auto.key=list(border=TRUE), par.settings=simpleTheme(pch=16),
scales=list(x=list(relation='sliced'), y=list(relation='sliced')),
data=Area_1)

The data is composed of two individual groups conditioned by height. The two groups get the colors pink and blue automatically and I wish to change them to more earthly tones.

Hi, the xyplot is a function from the lattice package, not ggplot2. Are you looking to solve your problem using lattice or ggplot2?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.