-
Notifications
You must be signed in to change notification settings - Fork 250
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
subplot_grid - cols option? #855
Comments
I don't think a using DataFrames
x = linspace(-2, 2, 11)
f(a) = a*x+5.0*randn(11)
# First make some data, without indices:
D1 = vcat([DataFrame(x=x, y=f(a)) for a in linspace(2,16,8) ]...)
# Now make some col and row indices:
D2 = vcat([DataFrame(x=x, xg=col, yg=row) for col in 1:4, row in 1:2 ]...)
# and concatenate:
D = hcat(D1,D2[:,2:3])
coord = Coord.cartesian(ymin=-50, ymax=50)
theme(x) = Theme(default_color=parse(Colors.Colorant, x))
p = plot(D, xgroup=:xg, ygroup=:yg,
Geom.subplot_grid(coord,
layer(x=:x, y=:y, Geom.point, order=1),
layer(x=:x, y=:y, Geom.smooth(method=:lm), theme("red"), order=2)
),
Guide.xlabel("x"),
Guide.ylabel("y")
)
You can stop the group labels from appearing by moving |
I'm looking for how to do the equivalent of a |
Nope, no |
Hi, it's not obvious from the documentation, but I was wondering if
subplot_grid
has anncol
option in the same way as ggplot2'sfacet_wrap
?I have many groups for grouping the x axis, and it lays all the subplots out horizontally which squashes them, I'm looking for a way to make it split the row of subplots into multiple rows to avoid the squashing.
Thanks,
Ben.
The text was updated successfully, but these errors were encountered: