Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add x-axis labels to each sub-plot #438

Open
sielerjm opened this issue May 9, 2022 · 0 comments
Open

Add x-axis labels to each sub-plot #438

sielerjm opened this issue May 9, 2022 · 0 comments

Comments

@sielerjm
Copy link

sielerjm commented May 9, 2022

Background:

I'm plotting the arrests data set from the Effects package in R. I'd like to only plot the first column showing released's relationship to all other variables with the x-axis labels shown for reach sub-plot.

library(effects)
library(GGally)

data(Arrests)

plot <- ggpairs(Arrests)

plot

Problem:

However, the x-axis labels are missing or suppressed being suppressed for the first row.

Question:

Update: I realized this is actually a two part question.

  1. I want to only plot 1 column (the released column) against all other variables
  2. I would like to label the x axis for each sub-plot.

Example plots

Plot that I have now

image

The plot I'd like to have

I'd like my plot to look like this, but with x-axis labels for each sub-plot:

plot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant