Displaying 20 results from an estimated 20000 matches similar to: "adding column and pulling data from table"
2008 Jun 08
1
eliminating and relabeling the first column
Hello everyone,
I have a data frame in which I am wanting to eliminate the row labels and then relabel the rows with
g1-g2000.I have used the following code:
dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1)
file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt")
I thought that this
2008 Jun 07
1
error message with dat
Hello everyone,
I have two problems which I am unable to solve :
1.I am trying to add the row labels (g1-g2000) to the very left of a data table. The data
table is 2000 rows by 62 columns.I have used the following code.
read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1)
rowname(dat) <- paste("g", c(1:nrow(dat)),
2011 Sep 20
3
adding labels to x,y points
Hi,
I am new to R.
I have a matrix that I have assigned to the object ?colon?.
> colon<-read.table("c:\\alon.txt",header=T,row.names=1)
attach(colon)
names(colon)
The dimenstions are 2000 62.
Each of the 62 columns (titled norm1, norm2, norm3, etc) has 2000
different numbers (?continuous? values) within it.
I have also assigned a name for each of the 2000 rows of the
2008 Jul 25
1
Scatterplot matrix one column vs. the rest of the dataset
have a data frame composed of many columns. I would like to hold one column
constant and scatter plot it agianst all of the other columns? how do I do
this? I have only been able to plot(x) and use indexes to create an entire
scatterplot matrix, but not hold one constant.
--
Let's not spend our time and resources thinking about things that are so
little or so large that all they really do
2008 Sep 24
2
Why horizontal bars instead of a line
Hey list!
It looks simple, though it's not possible for me to plot the following
properly:
(some made-up data)
GrSe Clone1 Clone2 Clone3 Clone4 Clone...
G1999 2 3 6 5
G2000 2 5 7 4
G2001 5 3 7 3
G2002 4 5 8 3
G...
GrSe=Growing Season.
I've read the file as "x" and then tried: plot(x$GrSe,x$Clone1)
The output is 4 horizontal bars. Even if I write
2009 May 15
2
Additional points to scatter plot show up at wrong place
Hi everyone,
I have a problem with adding points to scatter plots.
The plot is drawn with the scatterplot() function from the car library:
scatterplot(data[,2] ~ data[,1],
data=data,smooth=F,reg.line=F,xlim=c(0.5,1),ylim=c(0.5,1),ylab="ML",xlab="Freq",cex.lab=1.9,cex.axis=1.8)
after that, I draw one line with abline(0,1,col="gray20") which works
perfectly fine.
2008 May 13
1
Legend in scatterplot and adding regression lines
Hi R users
The scatterplot (used package R-Cmdr ) obtained has the legend off the
plot in the upper left
I would like to decide where to put the legend - is that option still
available and how do I do it?
code:
Dataset <- read.table("J:/Pigmatingsb.txt", header=TRUE, sep="\t",
na.strings="NA", dec=".", strip.white=TRUE)
2010 Jul 07
3
Boxplots over a Scatterplot
Hello-
I'm new to R, coding and stats. (Oh no.)
Anyway, I have about 12000 data points in a data.frame (dealing with
dimensions and geological stage information for fossil protists) and have
plotted them in a basic scatter plot. I also added a boxplot to overlay
these points. Each worked fine independently, but when I attempt to
superimpose them with add=true, I get a different scale for
2008 Oct 02
3
Adding plane in a 3D scatterplot
I have drawn a 3D scatter plot :
library(mnormt)
library(scatterplot3d)
dat = cbind(rmnorm(3, rep(0,2), diag(2)), 1:3)
scatterplot3d(dat)
Now I want to do 2 things :
1 : In the Z-axis (i.e. height), I want to see only numbers 1,2,3, etc NOT, 1,1.5,2,2.5.............
2. I want to add two Horizontal planes at hight z=2 and z=3. Those two planes should look like "bottom" of that 3D plot
2011 Oct 13
1
Axis Formats with library(car)
I am trying to develop scatter plots using library(car). However, the output
I am getting shows the axis (x and y) in scientific notation. I want to have
the axis represented by regular integers (for eg. the X axis i want the
upper bound to show as 40,000,000 instead of 4.0e+07). Scanning the r-help
archives did not get me the answer.
I have uploaded my data here: http://bit.ly/olgMLt
2011 Oct 24
2
Date column in downloaded date
Hi All:
If I download yahoo data by getSymbols() in R, the date column gets
accompanied along with the downloaded data. There is no column header for
the date column to access separately.
What is the way to eliminate the date column?
If I want to draw a xy scatter plot with the downloaded price (suppose AAPL
vs NASDAQ), I think the date column is creating problem and the plot
function is not
2010 Oct 01
2
How to generate scatterplot - with a twist
Hi. I would like to make a scatterplot where all of the points are evenly
spaced from each other - however, they are all the same size and occupy the
entire graph. For example:
x = rep(c(1:10), 10)
y = rep(c(10:1), each = 10)
plot(x, y, pch = 0)
Gives me a scatter plot with 100 square points each evenly spaced between
each other. But these points don't fill up the entire space and if I try
2010 Feb 23
2
scatterplots in car package
Hi, using scatterplot in 'car' package.
There are 4 plots to be pictured together (ignore data used):
library(car)
par(mfrow=c(3,1))
ts.plot(rnorm(100))
ts.plot(rnorm(100))
scatterplot(rnorm(100),rnorm(100),boxplot="",smooth=T) # scatter with
non-parametric fit
problem is that the last one comes 'always' separate.
Is there any way to solve it?? of course can use
2007 Jan 03
3
How to add characters on graph ?
An embedded and charset-unspecified text was scrubbed...
Name: inte tillg?nglig
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070103/d0f3260e/attachment.pl
2005 May 29
2
joining files after canonical correlation
Dear R,
I recently did a canonical correlation analysis on two subsets of data
(location and weather). So I now have canonical scores for location and
weather. but I'd now like to do a scatterplot matrix using the pairs
statement.
Is there a way to somehow join location.U and weather.V to become a new data
set from which I could undertake a scatterplot matrix of the canonical
variates?
2007 Oct 21
2
scatter plot with 1 standard deviation for each point
Hi,
Could anyone give suggestions how to plot a scatter plot with 1 standard
deviation for each point. To make it clearer, here is a simple example: the
scatterplot is plot(X, Y), but I want to add 1 standard deviation according
to the value of Z for each Y.
X Y Z
1 3.5 1.1
. . .
. . .
. . .
Thanks a lot in advance.
FD
[[alternative HTML
2004 Nov 24
12
scatterplot of 100000 points and pdf file format
Hi,
I want to draw a scatter plot with 1M and more points and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf.
This looks OK if printed but if viewed e.g. with acrobat as document
figure the quality is bad.
Anyone knows a way to reduce the size but keep the quality?
/E
--
Dipl. bio-chem. Witold Eryk Wolski
MPI-Moleculare
2007 Aug 31
2
Automatic anchors for text boxes
Hi All,
I'm struggling to add text automatically to plots. I have a series of
scatterplots that I have stored in a script because the underlying data
changes often and the plots need to be regenerated. I use the scatterplot
function (defined in Rcmd, I believe). When one of the variables is a
factor, a boxplot is drawn over the scatter of the other variable. In the
case where x is a
2010 Oct 21
4
3D-scatterplots - high quality rendering?
I have just started using the package 'rgl' to explore my data as a 3D
scatterplot.
It's a great tool. But I would like to be able to save some graph
views and it appears the only format available is 'png' and it doesn't
look that nice. It is excellent to work with on screen and
explore/play, but when it comes to producing a good quality graphic
I'm a bit
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
I am running R version 2.15.1 in Windows XP
I am having problems with a function I'm trying to create to:
1. subset a data.frame based on function arguments (colname & parmname)
2. rename the PARMVALUE column in the data.frame based on function
argument (xvar)
3. generate charts
plotvar <- function(parentdf,colname, parmname,xvar,yvar ){
subdf <-