scshape {ggplot} | R Documentation

## Scale: shape

### Description

Create a scale for categorical shapes.

### Usage

    scshape(plot = .PLOT, solid=TRUE)

### Arguments

`plot` | plot to add scale to
`solid` | should points be solid or hollow?

### Details

This scale is automatically added when you use the shape aesthetic mapping. By using this scale you can explicitly decide whether the points used should be hollow or solid.

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### See Also

`scale_categorical`, `map_shape`

### Examples

    p <- ggplot(mtcars, aes=list(x=mpg, y=wt, shape=cyl))
    ggpoint(p)
    ggpoint(scshape(p, FALSE))

[Package ggplot version 0.2.2 Index]