Skip to content
Prev 178736 / 398506 Next

Changing color of points in violin plot

On Mon, Apr 27, 2009 at 12:15 PM, John Poulsen <jpoulsen at zoo.ufl.edu> wrote:
It's only accessible through the settings (which you can only tell by
looking at the definition of panel.bwplot):

bwplot(voice.part ~ height, singer,
       panel = function(..., box.ratio) {
           panel.violin(..., col = "transparent",
                        varwidth = FALSE, box.ratio = box.ratio)
           panel.bwplot(..., fill = NULL, box.ratio = .1)
       },
       par.settings = list(box.rectangle = list(col = "darkgreen"),
                           box.umbrella = list(col = "darkgreen")))

-Deepayan