similar to: Plot colors

Displaying 20 results from an estimated 5000 matches similar to: "Plot colors"

2007 Jul 20
3
SOS
Dear all, I am a new user of R. I would like to know how to get fund's returns in percentage (%). For example, I use: R <- ts(read.xls("FundData"), frequency = 12, start = c(1996, 1)) Whith this program, the returns are like 0.0152699. But, I would like to have 1.52%. Please advise me about the function. Thanks! Fabrice
2007 Nov 14
2
About print a label in plot
Dear list, Hello! I have a question about how to print a label in the plot. I am using the following code: <pdf("mel4_chr3_11cancer_cghFLasso.pdf", height=6, width=5);plot(Disease.FL, index=i, type="Single",main="Plot of Labels");dev.off(); But "Plot of Labels" has not been printed. Any suggestions? Thanks a lot! Allen
2006 Oct 20
2
Recursive decreasing sequences
Hello fellow R's, I'm sure there must be an easy way to do this. But after digging in the documentation and thinking about it for a while I couldn't figure it out. I need to get a decreasing recursive vector in. I mean something like this: if starting at 2, and ending at 6, the vector should be 2 3 4 5 6 3 4 5 6 4 5 6 5 6 6 An easy way would be to do this x <-
2005 Nov 09
2
Variograms and large distances
Hello R list, I need to compute empirical variograms using data from a large geographic area (~10^6 km2). Although I could not find a specific reference, I assume that both geoR and gstat calculate distances among data points assuming points are on a flat surface (using the Pythagorean Theorem). Because the location of my data is large and located near the pole, assuming that latitude and
2007 Aug 14
1
weights in GAMs (package mgcv)
Dear list, I?m using the ?mgcv? package to fit some GAMs. Some of my covariates are derived quantities and have an associated standard error, so I would like to incorporate this uncertainty into the GAM estimation process. Ideally, during the estimation process less importance would be given to observations whose covariates have high standard errors. The gam() function in the ?mgcv? package
2007 Aug 30
4
How to measure mode (central tendancy)
What is the name of the function to give me the mode (central tendancy) of a numeric variable that can be negative? [[alternative HTML version deleted]]
2007 Dec 14
1
detailed calculation of two way anova with unbalanced design
Dear list, Could someone show me where can I find the detailed formula on how to calculate the two way anova with unbalanced design? Say, if I have 2*2 design with 10,20,30,40 samples in each of the 2*2 cells. Most of the places I've googled only show how to calculate using software such as R, but not clear the detailed formula for calculating this. Thanks, Jack [[alternative HTML version
2007 Aug 07
2
Spatial sampling problem
Hi All, I am new in R and trying to simulate random normal 2D field with mean trend say north-south. My domain is 10x10 grid and I am trying to use mvnorm but do not know how to specify the domain and the mean field. I would appreciate any help. Cheers, SK --------------------------------- [[alternative HTML version deleted]]
2007 Aug 14
2
labelling plots with ancillary data in data.frame
Hi All, I am busy using R to do some regression modelling and have been using plot(x,y,"") to visualise my variables. I would now like to label my points using data stored in the data.frame used for the regression analysis. For example each of my data points is made up of a field measured forest volume value and a remotely sensed vegetation estimate (NDVI). Each point is an enumeration
2007 Dec 07
4
if/else for plot/lines?
I'm interested in writing a function that constructs a new plot on the current graphics device if no plot exists there yet, but adds lines to the existing plot if a plot is already there. How can I do this? It seems to me that the exists() function might be co-opted to do this, but it's not obvious how. Many thanks, Roger -- Roger Levy Email: rlevy at ucsd.edu
2007 Jul 18
3
How to open an URL using RGtk2
Hi I am working on R 2.5.0 on window. I am trying to provide a Hyper-link to the user as a result, I have tried using gtkLinkButton to exercise the facility, however, i am not able to perform the required task, i.e. when I clicked on the LinkButton actually nothing happened. I have gone through the documentation for the same and found that GtkLinkButtonUriFunc is a function which is require to
2007 Sep 21
3
Estimate correlation with bootstrap
Hello. I would like to estimate the correlation coefficient from two samples with Bootstrapping using the R-function sample(). The problem is, that I have to sample pairwise. For example if I have got two time series and I draw from the first series the value from 1912 I need the value from 1912 from the second sample, too. Example: Imagine that a and b are two time series with returns for
2007 Sep 11
5
Percentiles in R
Hi there! Still struggling to translate Matlab code into R's tsDyn package. Here is my question: Is there in R an equivalent function to Matlab's prctile()? To the moment I thought it was quantile(), but I just realized I was wrong. The definition of the Matlab function: prctile Percentiles of a sample SyntaxY = prctile(X,p) Description Y = prctile(X,p) calculates a value that is
2008 May 03
3
Excluding/removing row and column names on text output files
Dear R users, I've had no joy finding a solution to this online or in any of my R books. Many thanks in advance for any help you can give. I'm seeking to output a data frame (or matrix - it doesn't matter which for my purposes) to a .txt file, but omit any row or column names. The data frame that I'm using doesn't actually have column or row names to start with as it has been
2007 Jun 21
1
mgcv: lowest estimated degrees of freedom
Dear list, I do apologize if these are basic questions. I am fitting some GAM models using the mgcv package and following the model selection criteria proposed by Wood and Augustin (2002, Ecol. Model. 157, p. 157-177). One criterion to decide if a term should be dropped from a model is if the estimated degrees of freedom (EDF) for the term are close to their lower limit. What would be the
2006 Jun 23
1
Running executable files from R
Hello fellow R's, I apologize if this question was answer elsewhere. I have an executable file that I need to run from R. Basically I want to use R to create the input files this executable requires, then run it, and finally use R again to analyze the output files. Because I have to do this many times I'd like to have the R code call the executable file after the input files are
2013 Jul 15
3
ayuda con stringr
Hola a todos. Soy un poco torpe manejando cadenas de texto, así que os pido ayuda. Tengo un vector de texto de este tipo datos$tipo [1] m.1.p.Álava m.1.p.Albacete [3] m.2.p.Alicante m.1.p.Almería [5] m.3.p.Asturias m.1.p.Ávila [7] m.1.p.Badajoz m.1.p.Baleares (Illes) [9] m.1.p.Barcelona m.1.p.Burgos [11] m.1.p.Cáceres m.1.p.Cádiz Y quiero extraer el
2007 Oct 08
2
variance explained by each term in a GAM
Hello fellow R's, I do apologize if this is a basic question. I'm doing some GAMs using the mgcv package, and I am wondering what is the most appropriate way to determine how much of the variability in the dependent variable is explained by each term in the model. The information provided by summary.gam() relates to the significance of each term (F, p-value) and to the
2000 Jun 26
1
postscript error
I'm using R version 1.1.0 with Redhat 6.2 in a Dual-Pentium When I type postscript() I have the next error: -- Error in old$command == "default" : comparison (1) is possible only for vector types I have updated R next week using the rpm package http://www.stat.math.ethz.ch/CRAN/bin/linux/redhat/6.x/i386/R-base-1.0 .0-2.i386.rpm I know that postscript() has new features, but I
2018 Oct 28
2
libuv bug ??
EPEL package but I think there's a packaging bug, thought I would ask here. Trying to build something that requires libuv-devel - it finds the .so but can't determine version. header files are in /usr/include/uv however the pkgconfig file specifies /usr/include as the include directory. The pkgconfig file also has the version so I'm not sure why the make file can't determine