You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`facet_grid` (and my derivation) are constrained that the x-axis _must_ be
the same in each column, even when using `scales = 'free_x`. Without the
latter argument, the x-axis is the same across all columns.
Similarly for y-axis for each row.
You should be looking at the `facet_wrap` function. In your case here, I am
not even sure you need my package.
lør. 25. nov. 2023 10.38 skrev msgoussi ***@***.***>:
library(ggplot2)
library(lemon)
df <- data.frame(
v1 = c("A", "A", "A", "B", "B", "B"),
v2 = c("S1", "S2", "S3", "S7", "S8", "S9"),
nm = c(2, 3, 4, 5, 6, 7)
)
ggplot(df, aes(x = v2, y = nm)) +
geom_point(size = 3) +
facet_rep_grid(v1~., scales = "free_x", repeat.tick.labels = T)
The text was updated successfully, but these errors were encountered: