Displaying 20 results from an estimated 200 matches similar to: "Resizing Graphic Device Windows"
2010 Mar 12
3
defining columns in a matrix
Hi all,
I have the following 7 x 7 matrix. ?I am trying to figure out how to
label the columns to something more descriptive other than [,1], [,2],
etc.
I have tried the c(x,y,z,) function, but I get a error returned
stating that my vectors need to be the same length. Do I need to
convert this to something else such as a list and then repack it?
Thanks,
Kindra
?? ? ? ? Volume
Time ? ? ? ?[,1]
2010 Mar 04
2
missing date and time intervals in data frame
I posted a similar question, but feel it needs a bit more elaboration.
I have a data frame (read from a csv file) that may have missing rows. Each
day has 7 time intervals associated with it, with a range from 17:00 hrs to
18:00 hrs in 10 minute bins.
What I am looking for is a script that will run through the data frame and
insert "NA"in the Volume column for any dates that are
2017 Jul 06
1
Convert date to continuous variable in R
Thanks it worked for me. I wanted to plot days since planting on
x-axis 1 and years on x-axis 3.
LAI_simulation$Date <- as.Date( LAI_simulation$Date, '%Y/%m/%d')
LAI_simulation$Date <- as.integer(LAI_simulation$Date - as.Date("2009-10-07"))
plot(LAI~Date,data=LAI_simulation,xlab="Days since Oct, 7,
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
2008 Aug 01
0
standardize ggplot and lattice themes
Dear list,
I'm writing a long document (thesis) and as much as I would like to
use only ggplot2 for the graphics, some features are still a bit
undocumented so I often end up choosing either ggplot2, lattice, or
base plots (which i know better) depending on the particular graph to
produce. With the default settings, this does not make for a
consistent look I would like to see
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
2013 Dec 22
3
generacion aleatoria de coordenadas
Hola a todos
He estado trabajando con el paquete osmar y funciona muy bien.Puede alguien decirme donde encontrar informacion o algun script para generar una lista con N pares de puntos (longitud/latitud) aleatorios o siguiendo una funcion determinada dentro del marco de coordenadas definido por corner_bbox(left, bottom, right, top) para despues plotearlos.
saludos
eloy ortiz
--
Este
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
2012 Mar 10
1
How to improve the robustness of "loess"? - example included.
Hi,
I posted a message earlier entitled "How to fit a line through the
"Mountain crest" ..."
I figured loess is probably the best way, but it seems that the
problem is the robustness of the fit. Below I paste an example to
illustrate the problem:
tmp=rnorm(2000)
X.background = 5+tmp; Y.background = 5+ (10*tmp+rnorm(2000))
X.specific = 3.5+3*runif(1000);
2004 Dec 22
0
weighted kernel density estimation
Dear wizaRds,
I use the MASS::kde2d function to estimate density of the two first
principal components. I do that to have a graphic visualisation of a
"group structure" in my dataset. So far, no problem.
But i would like to estimate that density using weights according to the
COS?? values that tells me if my observation is well represented on the
factorial plan 1-2. I would like to
2010 May 26
1
Custom axis function in lattice:::xyplot
Dear List,
I have been writing a Lattice function to draw what we call
stratigraphic diagrams, these are diagrams with a panel for each species
showing a time series of abundance, but drawn vertically to represent
time passing from bottom of plot towards to top.
I am most of the way there with this now, but I want to do away with the
strip on each panel and instead draw a custom top axis with a
2006 Apr 17
1
[PATCH] Opacify on resizing & Opacify non opaque windows on resizing/moving
Greetings everyone!
I've just written two small patches. The first one allow opacifying
windows when resizing ; it adds two options to resize plugin's gconf
data : opacify (int, opacify percent) & opacify_non_opaque (bool, sets
if non opaque windows should be opacified when resizing)
The second one just add the option opacify_non_opaque to move plugin.
Both patches were
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
2006 Jan 19
2
function kde2d
Good evening,
I am Marta Colombo, student at Milan's Politecnico.
Thank you very much for your kindness, this mailing list is really useful.
I am using the function kde2d for two-dimensional kernel density estimation and I'd like to know something more about this kind of density estimator. In particular I'd like to know: what bandwidth is used ?
Thank you in advance for your attention
2009 May 24
1
filling area under a function line
Hi R collective,
I quite like the "curve" function because you can chuck a R function
into it, and see the graph in one line of R.
I had a google and found some threads for filling under the line;
http://tolstoy.newcastle.edu.au/R/e2/help/07/09/25457.html
However they seem to miss the point of the simplicity of going, "I
wonder what that looks like, and can I have some colour
2008 Jun 12
1
Problems with mars in R in the case of nonlinear functions
Hi,
I'm trying to use mars function in R to interpolate nonlinear
multivariate functions.
However, it seems that mars gives me a fit which uses only very few
basis function and
it underfits very badly.
For example, I have tried the following code to test mars:
require("mda")
f <- function(x,y) { x^2-y^2 };
#f <- function(x,y) { x+2*y };
# Grid
x <-
2009 Mar 21
1
Forestplot () box size question
Hi All,
I have been able to modify the x-axis to start at zero by adding xlow
and xhigh parameters; that was pretty simple. I have been unable to
find the location of the code that would turn off the information
weighting of the box size (I have smaller randomized trials getting
less weight than a much larger non-randomized trial). The function
is forestplot() from rmeta.
Thanks for any
2010 Feb 15
4
density estimates for fixed points
Problem:
Based on a n x 2 data matrix i want a kernel estimate of the bivariate
density. However, i also wish to specify wich points the density should be
calculated at.
I can offcourse just write the full kernel density estimate as a R-code, but
surely there must already exist some package for this operation?
The package density(), seems to create a new matrix (depending on n), where
the
2007 Aug 10
1
kde2d error message
Hello!
I am trying to do a smooth with the kde2d function, and I'm getting an error
message about NAs. Does anyone have any suggestions? Does this function
not do well with NAs in general?
fit <- kde2d(X, Y, n=100,lims=c(range(X),range(Y)))
Error in if (from == to || length.out < 2) by <- 1 :
missing value where TRUE/FALSE needed
Thanks in advance!!
Jen
[[alternative