Skip to content

[Issue] With g2(), subject() is pushing down the plot and hiding the x axis #5

@jdunham022

Description

@jdunham022

When using subject() with g2(), my plots are being pushed down by the title and my axis is then being hidden (as well as the bottom of the plot). I am just starting out with the g2r package and could possibly be doing something incorrectly. Below is a simple plot with subject() being used. I have attached two pictures showing my output of the below code. One is with subject("Plot Title"), and the other is without subject() being used.

dat <- mtcars %>%
  mutate(car = rownames(mtcars)) %>%
  head(6)

g2(dat, asp(x = car, y = mpg)) %>%
  fig_interval() %>%
  subject("Plot Title")

with_subject
without_subject

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions