suppose you have a dataframe with a column called c_lab that contains values from 0 to 100 and resembles a log-normal distribution.
I plotted the histogram with this code using gadfly package in Julia:
plot(df_plot, x = "c_lab", Geom.histogram(bincount = 100),
Guide.title("Pre-Tax Labor Income = h x w"),
Guide.xlabel("Gross Laboral Income"),
Guide.ylabel("Frequency"),
Theme(background_color = "white"))
And produces this plot:
The thing is in the x-axis I only have 3 values, I want to increment the number of breaks to say 10. (10, 20, 30,..., 100) or 4 (25, 50, 75,100).
In R I'd do it in a ggplot2 code and add +scale_x_continuous(n.breaks = 10)
How can I do the same in Julia Gadfly Package?
Thanks in Advance!!

Short answer: It doesn't appear that this feature exists directly in Gadfly, you may have to create something equivalent using
Guide.xticks(ticks = ticks))Long answer: I had a look at the source code for the scales in Gadfly, and though it has minticks and maxticks (so theoretically, if one had access to those, they could set both to the same number to force a certain number of ticks), it's unclear if that is accessible using the function which face the user.
In any case, it's straightforward to do something similar to this by creating an interval from the min to max, with i steps, where i is the number of ticks you want, and min and max are the minimum and maximum values on the x axis.
resulting graph
update: I asked on the Github page, and a maintainer confirmed that the way to do it is with xticks. Hope this helps!