Displaying 20 results from an estimated 9000 matches similar to: "Custom axis function in lattice:::xyplot"
2014 Aug 27
1
Re R CMD check checking in development version of R
Dear list,
This is related to the change discussed in the thread "no visible binding
for global variables for data sets in a package".
I went to look at the Check results for one of my packages (analogue) on
CRAN: http://cran.r-project.org/web/checks/check_results_analogue.html
Under the r-devel build machines I'm seeing a lot of things like this:
Stratiplot.default :
2010 Apr 29
2
Rotating Titles
Hi All,
I am looking for help in rotating species titles produced using the
strat.plot( ) function in the rioja package. This function produces a
stratigraphic plot of paleoenvironmental data. Currently the titles of each
species are plotted vertically while they are typically plotted at a 45
degree angle in other programs. Does anyone have any idea of how to rotates
these titles?
Below is an
2003 May 24
1
help with xyplot
Hi,
I make a graphic using xyplot, it is very good.
xyplot((ocorrencia/isca)~frag|especie)
But I need to plot a curve for each especie's plot.
I try to use panel.abline and others panel., but I dont succeed.
I need to plot the function exp(a+b*x+c*x^2)/1+exp(a+b*x+c*x^2), a b and c
are different for each especie.
Normally I use the curve function to add a curve in a points
2007 Mar 31
1
add confidence intervales to xyplot for ANCOVA and extracting info
Hi,
I would like to add confidence intervales to an ANCOVA with 2
covariates when using xyplot.
What would be a good way of accomplishing this?
--8<---------------cut here---------------start------------->8---
rm(list = ls(all = TRUE))
rm(list = c(ls()))
library(lattice)
## 1. generate data
random <- rnorm(200)
y <- abs(random)
x1.cont <- abs(random)
x2.fac <-
2009 Apr 15
1
Lattice xyplot with text under x-axis
Hi All,
I have a data set which I need to plot and show the values of one of the
variables as a second x-axis.
library(lattice)
year<-c(2001,2002,2003,2004,2005,2006)
fac<-c("arts","arts","arts","sci","sci","sci")
staff<-c(95,98,99,32,31,36)
part<-c(32,31,33,15,16,14)
df1<-data.frame(year,fac,staff,part)
2012 Apr 26
1
Hmisc::xYplot - text on xaxis
Hello, I'm making a simple plot using xYplot in the Hmisc library and having problems with labeling the values on the x-axis. Using the reproducible example below, how can I have the text (jan, feb,mar, etc.) in place of 1:12.
Thanks, AB
x <- c(seq(0,0.5,by=0.1),seq(0.5,0,by=-0.1))
ci <- rnorm(12,0,sd=0.1)
xupper <- x + ci
xlower <- x - ci
mo.fac <- c("jan",
2010 Apr 03
2
histogram-like barplot? (or reverse?)
Hi,
I have a simple task I can't figure out. I'd like to take
some measurements I made, e.g.:
year (y-axis)
1
2
3
4
5
6
counts (x-axis)
10
10
20
30
40
50
And then, make a barplot with the x-axis ticks (representing
the borders between years) between the bars.
However, barplot seems to force you to make the x-axis
arbitrary categories. I want it to be continuous (as in a
2004 Mar 19
5
asp=1 and aspect ratio
Hi everyone
I want a square scatterplot with abline(0,1) going exactly through the
SW and NE corners. By "square" I mean that the plotting region is
exactly square, and that the axis limits are identical.
x <- 1:20
y <- x+rep(c(-1,1),10)
lims <- range(c(x,y))
None of the following do this:
plot(x,y) ; abline(0,1) #not square
plot(x,y,asp=1);abline(0,1) #diagonal
2006 Jun 14
1
Estimate region of highest probabilty density
Estimate region of highest probabilty density
Dear R-community
I have data consisting of x and y. To each pair (x,y) a z value (weight) is assigned. With kde2d I can estimate the densities on a regular grid and based on this make a contour plot (not considering the z-values). According to an earlier post in the list I adjusted the kde2d to kde2d.weighted (see code below) to estimate the
2005 Jun 01
0
StructTS and arima and missing values
Dear List,
I am thinking about ways in which I might analyse some stratigraphic
data. The nature of the data series I have generates a number of issues:
1) The data I have in mind come from a sediment core sequence taken from
the bottom of a lake. The sequence is sliced into a priori defined
slices, in this case 0.2cm per slice. in this way a sequence of 0.2cm
slices is produced for the
2006 Feb 08
1
expand.grid without expanding
Dear list,
I've recently came across a problem that I think I've solved and that I wanted
to share with you for two reasons:
- Maybe others come across the same problem.
- Maybe someone has a much simpler solution that wants to share with me ;-)
The problem is as follows: expand.grid() allows you to generate a data.frame
with all combinations of a set of values, e.g.:
>
2011 May 06
1
How to alter circle size
Hello all,
I'm trying to create a heatmap using 2 matrices I have: z and v. Both
matrices represent different correlations for the same independent
variables. The problem I have is that I wish to have the values from matrix
z to be represented by color intensity while having the values from matrix v
to be represented by circle size. I currently have the following in front of
me and an unsure
2013 Nov 16
1
Problema con el titulo de la leyenda en grafico con xyplot
Estimados, tengo un grafico al que debo anexar la leyenda en el costado
derecho. Mi problema es que el titulo de la leyenda debe decir
"Concentration (mM)" el que es muy largo y la ultima M sale cortada. No
puedo abreviar la palabra porque justamente me rechazaron el grafico por
que estaba abreviada esa palabra.
Aqui pego el codigo con el que se hacen los graficos y anexo un archivo
2010 Oct 07
2
text/mtext axis labels on graphs
Hello everyone
I have problem with axis labels on graphs, I have my code as below:
plot(0,0,xlim=c(1,ncol(PA)),ylim=c(1,nrow(PA)),main="Stratigraphic
Range",xlab="Time
Bins",ylab="Taxa",cex.axis=1.5,cex.lab=2,cex.main=2.5,mgp=c(5,1.5,0),xaxt="n")
text(1:(length(strat_name)), y= 0, adj=1,
srt=45,labels=strat_name,xpd=TRUE, cex=1) #adds text to x
2012 Mar 16
2
Changing axis labels depending on panel in lattice
Hello,
I am lattice scatterplot that has 2 panels (could be a few more). Both
panels have a y-axis label that is different on the
left and right sides. However the right hand side axis labelling depends on
which panel i'm in .
(I am plotting two curves in one panel, the left y-axis has the scale for
the red line and the right y-axis has the scale for the blue line
I need to convert the
2007 May 30
3
separate y-limits in xYplot panels
Hello,
I would like to get the scales of y-axes dependent only on the data points in a particular panel. Have attached a test example below.
When using 'relation="free"', it does not make the scales 'free', however when using 'relation="sliced"', I get a warning "Explicitly specified limits ignored in: limitsFromLimitlist(have.lim = have.ylim, lim
2010 Jun 04
0
new package released: stratigraph v. 0.6b
Ladies and Gentlemen,
The first public (beta) release of the package stratigraph is now
available on CRAN:
http://cran.r-project.org/web/packages/stratigraph/index.html
It includes tools for plotting pollen diagrams, an implementation of an
evolutionary algorithm for drawing stratigraphic lines of correlation, and
several other functions for the analysis and plotting of geological,
2010 Jun 04
0
new package released: stratigraph v. 0.6b
Ladies and Gentlemen,
The first public (beta) release of the package stratigraph is now
available on CRAN:
http://cran.r-project.org/web/packages/stratigraph/index.html
It includes tools for plotting pollen diagrams, an implementation of an
evolutionary algorithm for drawing stratigraphic lines of correlation, and
several other functions for the analysis and plotting of geological,
2014 Jul 22
3
Question: Publishing R/S objects with WebServices (SOAP/WSDL)
Hello,
Can anyone tell me if there is a package which will allow me to write a
package in R, then publish the package using WebServices? The idea is that
I want to be able to pass a data set into R, have R perform the
calculations, then send the result back to either a .Net application or a
LIMS BASIC application.
So far I see many packages that allow R to consume WebServices, but I
haven't
2011 Oct 21
1
lattice::xyplot/ggplot2: plotting weighted data frames with lmline and smooth
In the HistData package, I have a data frame, PearsonLee, containing
observations on heights of parent and child, in weighted form:
library(HistData)
> str(PearsonLee)
'data.frame': 746 obs. of 6 variables:
$ child : num 59.5 59.5 59.5 60.5 60.5 61.5 61.5 61.5 61.5 61.5 ...
$ parent : num 62.5 63.5 64.5 62.5 66.5 59.5 60.5 62.5 63.5 64.5 ...
$ frequency: num 0.5 0.5