Displaying 20 results from an estimated 1000 matches similar to: "Using sunflowerplot to add points in a xyplot panel"
2006 Apr 04
1
Grid graphics issues
Hi all --
So I'm trying to use lattice graphics, but I want to use a
sunflower plot, which doesn't seem to be part of lattice. No problem,
I put together the following code, which mostly works -- *except* for
the first graph it generates. If it opens the graphic device, then it
draws the xygrid, clears the device, then draws the sunflowerplot.
All subsequent output operations work
2012 Jun 27
4
formula version of sunflowerplot() fails when axis label specified
Hello, R-help,
does anybody have already a work-around for the problem that the formula
version of sunflowerplot() throws an error when provided with a value for
xlab (or ylab) different from NULL:
> sunflowerplot( Sepal.Length ~ Sepal.Width, data = iris, xlab = "A")
Error in model.frame.default(formula = Sepal.Length ~ Sepal.Width, data = iris, :
variable lengths differ
2011 Dec 12
2
Colours for sunflowerplot
Dear fellow R users,
I would like to draw a "sunflowerplot" because I have data (decade by
month) that plots multiple times on the same x-y co-ordinates. Further I
would like to colour each of the points/sunflower leaves on the plot
according to the group they belong to (i.e. which type of event each
represents within that decade and month). I thought that this would be
relatively
2011 Feb 11
1
Using merge
Hi,
I have two tables and I need to merge both. I use the merge command, but
in this way the name must be exactly. How I can make to compare
independently of upper or lower-case?
Look:
data1<-data.frame(journal=c("Ecology","Environmental
Entomology","Neotropical Biology And Conservation"))
2007 May 21
2
more simplified output from glht object
Hi,
I use glht to make multcomp, using Tukey, from a glm model.
It is possible to get a more simplified output of result? Somethink like
ordering by letters.
Thanks
Ronaldo
--
Human kind cannot bear very much reality.
-- T. S. Eliot, "Four Quartets: Burnt Norton"
--
> Prof. Ronaldo Reis J?nior
| .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Ecologia
| : :' :
2008 Aug 01
2
How to get the p-value from lmer on a longitudinal analysis
Hi,
I have a modelo like this:
Yvar <- c(0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 1, 2, 3, 6, 6, 3, 3, 4)
TIME <- 4:22
ID <- rep("PlotA",19)
m <- lmer(Yvar~TIME+(TIME|ID),family=poisson)
anova(m)
summary(m)
How to get the p-value for this case?
Thanks
Ronaldo
--
Just because you're paranoid doesn't mean they AREN'T after you.
--
> Prof. Ronaldo Reis J?nior
|
2008 Sep 22
1
change the panel name in xyplot
Hi,
I try to change the panel name in a xyplot without success.
Look this example from xyplot manual:
xyplot(Murder ~ Population | state.region,data=states)
The panel title are:
Northeast, South, North Central, West, that are factor from state.region.
I need do change some names and, for example, put some of these in italic. I
dont find how change this.
I looking for this in Deepayan
2007 Aug 24
3
It is possible to use a Shell command inside a R script?
Hi,
It is possible to use a shell command inside a R script?
I'm write a R script and I like to put somes shell commands inside to R.
Somethink like: convert fig01.png fig01.xpm or sed ..., etc.
It is possible? How?
Thanks
Ronaldo
--
Acalme-se, s??o somente 0's e 1's
--
> Prof. Ronaldo Reis J?nior
| .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Ecologia
| : :' :
2010 Dec 19
1
sum with times
Hi,
I have this vector:
> A <- c("00:00:36","00:02:18")
> A
[1] "00:00:36" "00:02:18"
I use as.difftime to convert this to time vector based
> B <- as.difftime(A)
> B
Time differences in secs
[1] 36 138
attr(,"tzone")
[1] ""
Now i try to make a sum
> sum(B)
Time difference of 174 secs
The sum is ok, but
2011 Apr 08
4
Very simple question
Hi,
I have a very simple doubt.
Look:
> teste <- c("A","B","C")
> teste2 <- paste(teste[1],teste[2],teste[3],sep="+")
> teste2
[1] "A+B+C"
>
How to make it automatic, like I try to use paste(teste,sep="+") but the
paste dont get the teste elements separately to join again in a unique
element.
Exist any
2007 Oct 05
3
help in substitute function
Hi,
I try to use a substitute function to generalise a equation.
I have this:
expression(1+2*pred+3*lat)
I need to define the equation in function of x1 and x2 variables. Also I try
to define who is x1 and x2. I try this:
X1 <- "pred"
X2 <- "lat"
Now I need substitute pred and lat in equation by x1 and x2 defined on X1 and
X2 above, I try this way:
>
2009 Sep 01
2
Simple question about data.frame reduction
Hi,
this is a simple question
I have this data.frame:
> test <-
data.frame(var1=c(1,1,1,1,1,1),var2=c("a","a","b","c","d","e"),var3=c("a1","a1","b1","a1","c1","d1"))
> test
var1 var2 var3
1 1 a a1
2 1 a a1
3 1 b b1
4 1 c a1
5 1
2007 Dec 13
4
Very simple question on plot
Hi,
I try to make a plot like this:
Y |
|
| o
| o o
| o o
| o o
|o o o
|--------------------------------
0 10 20 30 40 50 60 70 80 90 100 (A)
100 90 80 70 60 50 40 30 20 10 0 (B)
or
B
100 90 80 70 60 50 40 30 20 10 0
Y |--------------------------------
|
| o
2007 Oct 13
1
Make playwith a default graphic device
Hi,
I looking for a graphic device on Linux with more functionalities than the X11
(). I find the plotAndPlayGTK package and the playwith function. It is a good
device. It is possible to make it default in my system.
Now I need:
> library(plotAndPlayGTK )
Loading required package: RGtk2
Loading required package: cairoDevice
>
> playwith(plot(1,1))
Error in plot.new() : figure margins
2012 May 30
1
Automatically install package dependencies
Hi,
I have a R Package. It is working, but I can't that it install the
dependencies automatically. When I try to install I receive this message:
> install.packages("./RT4Bio_1.0.tar.gz",dependencies=TRUE)
Installing package(s) into '/usr/local/lib/R/site-library'
(as 'lib' is unspecified)
inferring 'repos = NULL' from the file name
ERROR: dependency
2008 Mar 03
3
Script to start Rcmdr
Hi,
anybody know any way to make a bash script to start Rcmdr directly widthout
need to open R and execute library(Rcmdr)?
I try to make this using R CMD BATCH somethink, but dont find the way.
Thanks
Ronaldo
--
> Prof. Ronaldo Reis J?nior
| .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Biologia Computacional
| : :' : Campus Universit?rio Prof. Darcy Ribeiro, Vila Mauric?ia
|
2010 Nov 17
1
Color on trellis device
Hi,
I try to make a xyplot withou colors. I try:
pdf(file="test.pdf")
trellis.device(color=F)
Depth <- equal.count(quakes$depth, number=8, overlap=.1)
xyplot(lat ~ long | Depth, data = quakes)
dev.off()
the graphic is showed without colors in a X device but it dont work
saving directly on pdf device.
How I made to put color off in trellis device?
Thanks
Ronaldo
--
2ยช lei - Na
2008 Aug 05
1
Add arrows to a filled.contour margin
Hi,
I try to put an arrow to a filled.contour plot. I make this:
filled.contour(volcano, color = terrain.colors,key.axes=F)
arrows(0.95,0,0.95,1,lwd=2)
This work, but the problem is that I find the coordinates at random try, for
other graphic with other scale is other fight with coordinates. Anybody know
a more easy or more generalized way to make this? Somethink like this
2008 Feb 20
2
factors ordered by mean
Hi,
How to order the levels os factor not by alphabetic order but by mean of Y.
Somethink like this:
I have this alphabetic order:
> levels(pH)
[1] "alto" "baixo" "medio"
the order by mean os yvar is:
> sort(tapply(Riqueza,pH,mean))
baixo medio alto
11.56667 20.00000 26.80000
How to make the levels of pH ordered by this mean to the result to
2011 Dec 13
2
Problem with package compilation
Hi,
I have a R package with some functions made all of then only with R
code. I use the command R CMD build to build a package that I can
install on linux, windows or mac, because all the code is only R code.
But I have some problems with R version. For each new R version I need
to rebuild the package to be install in this new version. It is possible
to make a package without this R Version