Displaying 20 results from an estimated 300 matches similar to: "3D plot, rotatable and with adjustable symbols"
2009 Oct 23
5
Change positions of columns in data frame
Hi all,
Probably a simple question, but I just can't find a simple answear in the older threads or anywhere else.
I've added some new vectors as columns in a data frame using cbind(). As they're all put as the last columns inte the data frame, I would like to move them to specific positions. How do you do to change the position of a column in a data frame?
I know I can use
2009 Nov 04
2
PCA with tow response variables
Hi all,
I'm new to PCA in R, so this might be a basical thing, but I cannot find anything on the net about it.
I need to make a PCA plot with two response variables (df$resp1 and df$resp2) against eight metabolites (df$met1, df$met2, ...) and I don't have a clue how to do... and I've only used the simplest PCAs before, like this:
pcaObj=prcomp(t(df[idx, c(40:47)]))
2009 Oct 22
1
Automatization of non-linear regression
Hi everybody,
I'm using the method described here to make a linear regression:
http://www.apsnet.org/education/advancedplantpath/topics/Rmodules/Doc1/05_Nonlinear_regression.html
> ## Input the data that include the variables time, plant ID, and severity
> time <- c(seq(0,10),seq(0,10),seq(0,10))
> plant <- c(rep(1,11),rep(2,11),rep(3,11))
>
> ## Severity
2009 Nov 13
1
Trellis settings get lost when printing to pdf
Hi all,
I've got some problems when changing the trellis settings for the lattice plots. The plots look exactly as I want them to when calling show.settings() as well as when plotting them in the graphical window. But when printing to a pdf file, none of the settings are used!? Does anyone know what might have happened? Because the when changing the trellis settings, these should remain in
2009 Oct 27
2
Print several xyplots to the same page in a pdf file
Hello everybody,
I'm using the lattice package and the xyplot to make several graphs like below. However, I can just print the three grouped plots onto one page as I'm putting them into a pdf-file, which gives me a huge amount of pages... Is it possible to put them all, or at least more than one on the same page, for instance put three groups beside each other like columns?
...
2010 Jan 15
1
Remove part of string in colname and calculate mean for columns groups
Hi all,
I have two question. First, I wonder how to remove a part of the column names in a matrix? I would like to remove the "_ACCX" or "_NAX" part below. Is there a method where the "_" as well as all characters after i can be removed?
> dim(exprdata)
[1] 88 512
>
> colnames(exprdata[,c(1:20)])
[1] "Akita_ACC1" "Akita_ACC2"
2010 Jan 15
2
How to delete matrix rows based on NA frequency?
Hi all,
I would like to remove rows from a matrix, based on the frequency of missing values. If there are more than 10 % missing values, the row should be deleted.
I use the following to calculate the frequencies, thereby getting a new matrix with the frequencies:
freqNA=rowMeans(is.na(exprdata))
But is there a shorter way to remove the rows based on "(1-freqNA)>0.1"
2009 Oct 16
2
Division of data frame and deletion of values from column
Hi all,
I guess this might be an easy question, but I've searched multiple help pages without finding any answear... so now I put my trust in you!
I have a data frame (36 variables and 556 observations). One column contains three factors, and I would like to divide the data frame into three new ones, based on the value of the factors, thereby having only one value for all elements of the
2010 Jan 28
2
NA Replacement by lowest value?
Hi all,
I need to replace missing values in a matrix by 10 % of the lowest available value in the matrix. I've got a function I've used earlier to replace negative values by the lowest value, in a data frame, but I'm not sure how to modify it...
nonNeg = as.data.frame(apply(orig.df, 2, function(col) # Change negative values to a small value, close to zero
{
min.val =
2009 Dec 17
2
Exchange NAs for mean
Hi all,
I'm have a matrix (X) with observations as rows and parameters as columns. I'm trying to exchange all missing values in a column by the column mean using the code below, but so far, nothing happens with the NAs... Can anyone see where the problem is?
N<-nrow(X) # Calculate number of rows = 108
p<-ncol(X) # Calculate number of columns = 88
# Replace by columnwise
2009 Nov 11
1
Loadings and scores from fastICA?
Hi all,
Does anyone know how to get the independent components and loadings from an Independent Component Analysis (ICA), as well as principal components and loadings from a Pricipal Component analysis (PCA) using the fastICA package? Or perhaps if there's another way to do ICAs in R?
Below is an example from the fastICA manual (http://cran.r-project.org/web/packages/fastICA/fastICA.pdf)
2005 Jun 09
1
Help with SOM membership
Hi all,
I originally posted this to the bioconductor group, but maybe it's better
suited to the r-help...
I'm using som() to partition samples of gene expression data into clusters.
The point is to classify control vs. experimental cases (sample clustering).
The original matrix was 22283 x 8. The 8 samples have 4 controls and 4
experimentals.
I transposed the matrix so that its dim
2009 Jun 25
1
migrasi Email account client di qmailtoaster
Dear Rekan2
Saya mau tanya langsung nich...
Kalau mau backup email-email address client beserta password nya di
qmailtoaster server gmana yach cara nya????
Jadi kalau mau ganti server tinggal restore email address client dan
password nya saja.
Terima kasih
Dani
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Mar 13
5
can´t access share by name, but on ip
Hi All !
i?m running Clearcase (IBM Rational) and have some strange problems ... when i use Samba ver 3.21b i can?t access the samba share by name (\\servername\sambashare) but i can access it on ip (\\192.168.1.100\sambashare\) i?m running debug level 10 and it seems like it can?t authenticate when access on netbios/dns/host name but on ip it can ? when running samba ver 3.23b from
2010 Mar 23
1
Log linear model - Showing non-deviation form in glm()
Hey,
Whenever I set up a log linear model using glm(Y~. , data=data,
family=poisson) I get the parameters in the form of deviation from the first
cell kombination.
I find this to be hard to interpret when I for instance want to know if
there is a difference between two factors in the first category since those
parameters are not shown directly.
Is there any way to get the summary() command, or
2009 Dec 07
1
Multiple regression script
Hi all,
I'm doing Multiple linear regression for a data set. However, it takes a lot of time, as I would like to check every possible combination of factors, evalute the results based for instance on their p values, and then choose the best regression model.
So, I wonder if anyone might have a script for that? Or if not, do you have some suggestions how to create such a script?
I've
2009 Oct 27
1
Exclude rows in xyplot
Hi all,
I'm searching for a way to exclude outliers from my dataset while making xyplots. While plotting using pairs(), I exclude specific row in my data frame and save the settings as a variable which I later include as an argument:
# Discard outliers and save settings as idx
idx=with(fieldTrial0809, which(Pro>0 & Pro<0.95 & Fum>0 & Fum<0.4 & Mal>0.1 &
2009 Oct 14
1
Plot overview xy plots from data frame?
Hi,
I've got a data frame (556 rows and 36 columns) from which I need to create several xy plots and print to pdf, in order to detect outliers and trends in the data. 16 of the columns contains numerical values, and I would like to create graphs for all combinations. It can be done manually, but creating 256 plots by hand takes time... I guess I have to iterate through the data frame, but
2009 Nov 24
6
From R to LaTeX to pdf?
Hi all,
Anyone experienced in the LaTeX format?
I'm trying to use the xtable package to create nice anova tables, but how do I do to produce a pdf from the resulting LaTeX table? I've tried WinShell and MiKTeX, but I couldn't get any of them working...
Here's an example of the output in R:
% latex table generated in R 2.9.2 by xtable 1.5-6 package
% Tue Nov 24
2009 Nov 05
1
Set colors in a PCA plot based on a gradient vector
Hi all,
I'm making a PCA plot with eight variables (columns taken from a larger data frame "fieldTrial0809[idx,c(39:46)]"). I then want the symbols in the plot to be colored as a gradient from red to blue, depending on the value of another column in "fieldTrial0809[idx, c(48)]" containg temperatures from -12.1 to -5.4.
I don't want to use the heat.colors(n)