Re: [R] lattice splom: how to adjust space between tick marks and tick labels?
Dear Peter, thank you very much, *precisely* what I was looking for! Cheers, Marius On 2010-12-27, at 02:27 , Peter Ehlers wrote: > On 2010-12-26 08:26, Marius Hofert wrote: >> Dear David, >> >> thank you for your answer. >> As I wrote, I am looking for an option to control the *space* between the >> tick marks and the corresponding labels. I am happy with the *number* of >> tick marks and their default values. As far as I know, pscales can't control >> the space, so it is *not* what I am looking for. > > Marius, > I think that you mean something like the following: > > U <- matrix(runif(300), ncol = 3) > splom(U, par.settings = list( >axis.components = list( >left = list(pad1 = 3) >) > ) > ) > > which will adjust the left axis; you'll have to add > right, top, bottom components to handle those as well. > > Have a look at what trellis.par.get() produces and > check the axis.components section. > > Peter Ehlers > > >> Cheers, >> >> Marius >> >> On 2010-12-26, at 14:36 , David Winsemius wrote: >> >>> >>> On Dec 26, 2010, at 5:41 AM, Marius Hofert wrote: >>> Dear expeRts, how can I decrease the space between the tick marks and the corresponding labels in an splom? See here: library(lattice) U<- matrix(runif(4000), ncol = 8) splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and tick marks is/seems to be too large >>> >>> So you want more tick marks? >>> I checked ?panel.pairs but could not find an option for that. >>> >>> What about the pscales argument? >>> >>> A single number would increase the number of ticks, or a list with "at" and >>> "labels" values can be passed. Seem to be just what you asked for. >>> >>> -- >>> >>> David Winsemius, MD >>> West Hartford, CT >>> __ 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.
Re: [R] lattice splom: how to adjust space between tick marks and tick labels?
On 2010-12-26 08:26, Marius Hofert wrote: Dear David, thank you for your answer. As I wrote, I am looking for an option to control the *space* between the tick marks and the corresponding labels. I am happy with the *number* of tick marks and their default values. As far as I know, pscales can't control the space, so it is *not* what I am looking for. Marius, I think that you mean something like the following: U <- matrix(runif(300), ncol = 3) splom(U, par.settings = list( axis.components = list( left = list(pad1 = 3) ) ) ) which will adjust the left axis; you'll have to add right, top, bottom components to handle those as well. Have a look at what trellis.par.get() produces and check the axis.components section. Peter Ehlers Cheers, Marius On 2010-12-26, at 14:36 , David Winsemius wrote: On Dec 26, 2010, at 5:41 AM, Marius Hofert wrote: Dear expeRts, how can I decrease the space between the tick marks and the corresponding labels in an splom? See here: library(lattice) U<- matrix(runif(4000), ncol = 8) splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and tick marks is/seems to be too large So you want more tick marks? I checked ?panel.pairs but could not find an option for that. What about the pscales argument? A single number would increase the number of ticks, or a list with "at" and "labels" values can be passed. Seem to be just what you asked for. -- David Winsemius, MD West Hartford, CT __ 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.
Re: [R] lattice splom: how to adjust space between tick marks and tick labels?
Dear David, thank you for your answer. As I wrote, I am looking for an option to control the *space* between the tick marks and the corresponding labels. I am happy with the *number* of tick marks and their default values. As far as I know, pscales can't control the space, so it is *not* what I am looking for. Cheers, Marius On 2010-12-26, at 14:36 , David Winsemius wrote: > > On Dec 26, 2010, at 5:41 AM, Marius Hofert wrote: > >> Dear expeRts, >> >> how can I decrease the space between the tick marks and the corresponding >> labels in an splom? >> See here: >> >> library(lattice) >> U <- matrix(runif(4000), ncol = 8) >> splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and >> tick marks is/seems to be too large > > So you want more tick marks? > >> >> I checked ?panel.pairs but could not find an option for that. > > What about the pscales argument? > > A single number would increase the number of ticks, or a list with "at" and > "labels" values can be passed. Seem to be just what you asked for. > > -- > > David Winsemius, MD > West Hartford, CT > __ 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.
Re: [R] lattice splom: how to adjust space between tick marks and tick labels?
On Dec 26, 2010, at 5:41 AM, Marius Hofert wrote: Dear expeRts, how can I decrease the space between the tick marks and the corresponding labels in an splom? See here: library(lattice) U <- matrix(runif(4000), ncol = 8) splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and tick marks is/seems to be too large So you want more tick marks? I checked ?panel.pairs but could not find an option for that. What about the pscales argument? A single number would increase the number of ticks, or a list with "at" and "labels" values can be passed. Seem to be just what you asked for. -- David Winsemius, MD West Hartford, CT __ 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.
[R] lattice splom: how to adjust space between tick marks and tick labels?
Dear expeRts, how can I decrease the space between the tick marks and the corresponding labels in an splom? See here: library(lattice) U <- matrix(runif(4000), ncol = 8) splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and tick marks is/seems to be too large I checked ?panel.pairs but could not find an option for that. Cheers, Marius __ 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.