Skip to content

axis.line.x and axis.line.y work, but not axis.line #1567

Closed
@johnbaums

Description

@johnbaums

In 2.1.0, axis.line.x and axis.line.y work, but axis.line does not.

For example,

This works:

ggplot(mtcars, aes(wt, mpg)) +
  geom_point() +
  theme(axis.line.x=element_line(),
        axis.line.y=element_line())

image

But this doesn't:

ggplot(mtcars, aes(wt, mpg)) +
  geom_point() +
  theme(axis.line=element_line())

image

(The example at http://docs.ggplot2.org/current/theme.html - i.e., m + theme(axis.line = element_line(size = 3, colour = "red", linetype = "dotted")) - also fails)

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions