Displaying 20 results from an estimated 1000 matches similar to: "Bold fonts and greek characters in lattice plots"
2003 Mar 08
1
FIX: pscales=list(...) and splom
Dear R Users,
When plotting with "splom" I tried to use the pscales=list(...) feature
Unfortunately it didn't work at all. Instead the scales always were
suppressed.
So I looked at the source of panel.pairs and found:
"draw <- is.numeric(pscales) && pscales != 0"
which rather has to be:
"draw <- is.list(pscales) || (is.numeric(pscales) &&
2007 Oct 16
1
Adding axis lines to splom plots
Hi,
I am trying to produce a 30x30 lattice grid. The 30 variables naturally
fall into three groups of ten and I would like to add thicker axis lines
around these to highlight this. However, I can only do this separately,
so far, and I don't know how to superimpose the grid with the thicker
lines (separating the 10x10 groups) onto the overall grid of all 30x30
plots. I enclose a
2008 Sep 21
1
How to put given values in lower triangle of splom-plot?
Dear R-experts,
I have found a splom-modification online which is given below. This
works perfectly, but I would like to have a matrix of given
correlation values to be used in the lower triangular part
(lower.panel) of the splom-plot instead of calculated correlation
values. Here is the matrix I would like to use (it can be any other
convenient data structure):
2007 Aug 01
1
Splom custom superpanels
I thought one nice addition to a splom figure would be to have the
scatterplots in the upper triangle and a color-coordinated
correlation matrix on the bottom. So I tried my hand at customizing
panel.pairs(), and was rebuffed. Many times. Four hours of
fruitless debugging later, I turn to you for help:
panel.pairs(z=teststatfull[,6:12], pscales=0,
panel.subscripts=FALSE, subscripts=,
2012 Nov 19
2
lattice: defining grouping variable only for the upper/lower panel with splom
Using the mtcars dataset, how to define the grouping variable to be valid
only for the upper or lower panel?
The following doesn't work:
# Code start
splom(~data.frame(mpg, disp, hp, drat, wt, qsec),
data=mtcars, pscales=0,
auto.key=list(columns=3),
upper.panel = function(...){
panel.grid(...)
panel.xyplot(groups=cyl,...)
}
)
# Code end
--
View
2010 Sep 30
2
panel.pairs in splom
Hello,
I have a customized pairs () fonction as follows that displays correctely my
data.
------------------------------------------------------------------------
panel.cor1 <- function (x, y, digits=2, prefix="")
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(0, 1, 0, 1))
r <- cor(x, y,use="pairwise.complete.obs",
2011 May 09
0
Lattice: splom plots for different factors with correlation in lower.panel
Hello list,
I am looking to create a figure for my dataset using splom, where there is a
splom subplot for each level of a factor within, for example, a 2x2 layout.
For each subplot, I wish to put the r-value between each variable pair in
the lower panel. The code I have thus far is below, using the iris dataset
so that it is reproducible. This almost does what I want, but for some
reason
2007 Feb 09
1
How to add the variable name to a qqplot or densityplot in the diagonal of an splom?
splom() doesn't complain here, but writes no names in the diagonal
boxes. What am I missing?
I believe that I need to add something like grid.text(x, ...) to the
diagonal panel, but I don't know how to get it cycle through the
column labels. And should
varname.col = 'blue', varname.cex = 1
be inside the diag.panel() function?
splom(szw[, n], pscales = 0,
diag.panel
2010 Dec 26
1
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
2009 Jan 31
3
This site may harm your computer - Google warning about cran website
This is extremely annoying (and it smells of rat).
As of this time (1013 am ET), Google issues the following nasty warning: "This site may harm your computer"
when I try to visit any of the CRAN package repository sites or CRAN task view.
The funny thing is that Google's Safe Browsing Diagnostic page (it gives diagnostics about any page that
it may contain Malware) does not seem
2009 Jan 08
0
Numerical Integration Problems
Hi,
You may want to try the double exponential transformation on the numerator and the denominator on this one.
The method is described in detail here:
http://projecteuclid.org/DPubS?service=UI&version=1.0&verb=Display&handle=euclid.prims/1145474600
If you want to give it a shot outside R there are a couple of C/C++ implementations out there:
2008 Jun 18
2
ifelse and "&&" vs "&"
Hi,
I noticed whether some one could explain why "&" and "&&" behave differently in data frame transformations.
Consider the following :
a<-data.frame(r=c(0,0,2,3),g=c(0,2,0,2.1))
Then:
> transform(a,R=ifelse(r>0 && g> 0,log(r/g),NA))
r g R
1 0 0.0 NA
2 0 2.0 NA
3 2 0.0 NA
4 3 2.1 NA
but
> transform(a,R=ifelse(r>0 & g>
2009 Jul 31
1
help in using gsub and ?
Hi all,
I would like to strip the R prompt from a series of code lines and copy the resulting text into a R script. For example, consider the following :
#####
str1<-"
> library(MASS)
> data(Cars93)
> attach(Cars93)
> imosaic(data.frame(AirBags,Cylinders,Origin))"
str2<-gsub('>','',str1)
######
This gives, as expected .?
> str2
[1] "\n
2004 Feb 10
1
make check in 1.8.1.
I just (finally!!!) got R version 1.8.1 to configure and build under
Solaris 9 (after much travail; there were funnies in my environment
variables that mucked things up, but that's another story).
Anyhow, when I ran ``make check'' I got an error right toward the
end. Looking in the directory ``tests'' I found that the error was
associated with the file reg-tests-3.R, and the
2012 Sep 24
1
Question lattice SplomT
Dear Deepayan Sarkar,
I have (again) a question concerning "panel" and my function "SplomT",
see attachments. Some time ago you helped me to write this function,
thanks again. I have used it to great advantage in my statistics
instructions. Now the problem I encounter is that the .pdf figure
generated in Sweave consists of
one extra empty page at the start.
This prevents
2010 Jul 08
4
Duda con orden Cars93
Cordial saludo,
Estoy haciendo una grafica de la base de datos Cars93 conde relaciono
Manufacturer con Price con este codigo
library(MASS)
with(Cars93,plot(Manufacturer, Price, las=2, ylab="Precio (en $1,000)"))
necesito el comando para que queden ordenados de manera ascendente como en
la grafica 2, muchas gracias por su ayuda
Grafica 1
[image: M-P.JPG]
Grafica 2
[image: M-P
2010 Aug 27
0
How to maintain class signature in splom
All,
I was having trouble trying to create a new class of data and pass it on to splom (in the lattice library). I mentioned this to Martin Morgan after a talk he gave. Following is not so much a question, but rather an answer from Morgan that might be useful to others. Here is the edited part of an email conversation with him:
On Thursday, August 26, 2010 1:36 PM, Martin Morgan wrote:
2010 Jan 31
1
accessing column and row numbers inside splom in lattice
Hi,
When using splom() in the lattice package, I would like to be able to
access the row and column number of each individual pairs plot ,
similar to the way that current.row() and current.column() can be used
in other lattice plotting functions such as xyplot. For example, I
would like to be able to write something along the lines of
library(mvtnorm)
library(lattice)
y <-
2002 Dec 04
1
using edit.data.frame
dum is a simple data frame transferred to Splus using the dump()
command in Splus and the source() in R. All fields are numeric. There
are no missing data. The data frame looks like it is should:
> apply(dum,2,mode)
yrcl sland s02 s234
"numeric" "numeric" "numeric" "numeric"
> apply(dum,2,is.vector)
yrcl sland s02 s234
2017 Jan 09
1
problem with print.generic(x)deparse(substitute(x))
Hi, Peter et al.:
On 2017-01-09 4:24 AM, peter dalgaard wrote:
> On 09 Jan 2017, at 10:53 , Spencer Graves <spencer.graves at prodsyse.com> wrote:
>
>> # Define an object of class 'dum'
>> k <- 1
>> class(k) <- 'dum'
>> str(k) # as expected
>>
>> # Define print.dum
>> print.dum <- function(x, ...)
>>