Hi *, I solved the tick problem somehow (or rather I noticed that they are actually drawn on a xyplot which is there I really want them), but I'm still wondering and cannot find any information on that, how I align my axis in a xyplot that they both go through 0 (leftsided y-axis through x=0, x-axis at the bottom through y=0).
And is there a way to have the top axis and right axis not drawn at all? I managed to get rid of the ticks, but not any further... Hope somebody can help me struggling with lattice, Thanks, Katharina katharina wrote: > > Hi there, > > I'm a bit confused concerning the axis tck setting in the lattice > package as the ticks on left sided axis aren't > drawn at all with the following setting: > > dados <- data.frame(varsep = factor(rep(1:2,10)), > i = runif(20)) > > library(lattice) > > my.theme <- list( > axis.components = list(left = list(tck = 1, pad1 = 1, pad2 = > 2), top = list(tck = 0, pad1 = 1, pad2 = 0), right = list(tck = 0, > pad1 = 1, pad2 = 0), bottom = list(tck = +0.5, pad1 = 1, pad2 = 2))) > > trellis.par.set(theme = my.theme) > > > bwplot(varsep ~ i, dados, > xlab = names(dados)[1], > ylab = names(dados)[2], > panel = function(...) { > panel.grid(v = -1, h = 0) > panel.bwplot(...) > }) > > > > Maybe somebody can help me recognise the problem why the left sided > ticks are not drawn. > > I'm also wondering how to tell the trellis object not to draw the > right and top axes at all an how to align the y axis > that it goes through x=0? > > Thanks, > > Katharina > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://www.nabble.com/lattice%3A-axis-ticks%2C-axis-alignment-and-remove-axis-from-plot-tp24070012p24079731.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.