Displaying 7 results from an estimated 7 matches for "minor_break".
Did you mean:
minor_breaks
2025 Jan 21
1
ggplot with major and MINOR tick marks on a log scale
...0.7) +
geom_line(linewidth = 1.5, alpha = 0.3) +
theme(axis.text.x = element_text(angle = -15, hjust = 0)) +
scale_y_log10() +
guides(y = guide_axis(minor.ticks = TRUE))
#--- And the other plot
# function in this StackOverflow post
# https://stackoverflow.com/a/33179099/8245406
log10_minor_break = function (...){
function(x) {
minx = floor(min(log10(x), na.rm=TRUE)) - 1
maxx = ceiling(max(log10(x), na.rm=TRUE)) + 1
n_major = maxx - minx + 1
major_breaks = seq(minx, maxx, by = 1)
minor_breaks =
rep(log10(seq(1, 9, by=1)), times = n_maj...
2009 Jul 23
1
tweak a bit the legend wiht ggplot2
...ression(p/p[0]),y=N[2]~adsorbed~volume~(cc/g)) +
scale_shape(name="Adsorption\nProcedure"
,solid=F
,breaks=c("A","D")
,labels=c("Adsorp.","Desorp.")
) +
scale_colour_hue(name="Adsorbent") +
scale_x_continuous(limits=c(0,1),minor_breaks = seq(0,1,0.1)) +
scale_y_continuous(limits=c(0,1000)) +
opts(panel.grid.minor = theme_line(colour = "grey94"))
print(ads.graph)
dev.off()
Regards/Cordialement
-------------
Benoit Boulinguiez
Ph.D student
Ecole de Chimie de Rennes (ENSCR) Bureau 1.20
Equipe CIP UMR CNRS 622...
2025 Jan 21
3
ggplot with major and MINOR tick marks on a log scale
I have used ggplot to create a graph on which the y-axis is on the log scale. (see data and code, below.) I would like to add minor tick marks, which will also be on the log scale. The data and code are below. I hope somone can tell me how I can modify the ggplot code so it produces minor tick marks on a log scale.
Thank you,
John
?
PopByDayByAQIminus <- dget(
structure(list(Day =
2023 Jun 11
1
Marcas secundarias ejes ggplot2
Muchas gracias Carlos por los enlaces.
Estimado Javier Marcuzzi lo que yo quiero es poner las marcas secundarias a
mis ejes sin etiquetas como se puede hacer en matplotlib. Un ejemplo se
puede ver en el siguiente enlace
https://interactivechaos.com/es/manual/tutorial-de-matplotlib/marcas-principales-y-secundarias
El sáb, 10 jun 2023 a las 22:56, Carlos Ortega (<cof en
2008 Oct 05
0
ggplot2 - version 0.7
...run, which
should make it much more robust at finding the variables you expect it
to find
* qplot: now treats any arguments wrapped in I() as parameters, not
aesthetics, e.g. qplot(mpg, wt, data=mtcars, colour = I("red")) or
qplot(mpg, wt, data=mtcars, size = I(5))
* scale_continuous: new minor_breaks argument to controls position of
minor breaks
* scale_discrete: new discrete position scales which make it possible
to manually position elements
* scale_gradientn: new colour scale which creates gradient between any
list of colours
More consistent interfaces
* can use color instead of colour, a...
2008 Oct 05
0
ggplot2 - version 0.7
...run, which
should make it much more robust at finding the variables you expect it
to find
* qplot: now treats any arguments wrapped in I() as parameters, not
aesthetics, e.g. qplot(mpg, wt, data=mtcars, colour = I("red")) or
qplot(mpg, wt, data=mtcars, size = I(5))
* scale_continuous: new minor_breaks argument to controls position of
minor breaks
* scale_discrete: new discrete position scales which make it possible
to manually position elements
* scale_gradientn: new colour scale which creates gradient between any
list of colours
More consistent interfaces
* can use color instead of colour, a...
2023 Jun 11
1
Resumen de R-help-es, Vol 172, Envío 16
...-es] Marcas secundarias ejes ggplot2
Message-ID:
<CABaOv1FU=M+Xptg4nKiNxaaBs7MozzF3+by6j6UWF159AS79rg en mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hola Javier, mira el siguiente enlace:
https://cran.r-project.org/web/packages/ggprism/vignettes/axes.html
Con minor_breaks puedes lograr lo que deseas.
Cordialmente,
David.
On Sat, 10 Jun 2023 at 20:05, Javier G?mez Gonzalez <zaragatan en gmail.com>
wrote:
> Muchas gracias Carlos por los enlaces.
>
> Estimado Javier Marcuzzi lo que yo quiero es poner las marcas secundarias a
> mis ejes sin etique...