Displaying 20 results from an estimated 10000 matches similar to: "plotting help needed"
2008 Jan 08
1
plotting help request II
Dear all,
meanwhile i found out how to handle the coordinate thing and plot the
lines like i like.
the remaining problem is, i need something like names.arg does in
barplot for my plot.
my plot connects several dots with several lines. and now i like
characters as the names of the intersects of the x-axis.
vector1=c(a,b)
vector2=c(c,d)
# this vector makes sure the yellow line starts at
2009 Nov 06
1
using xyplot to plot frequencies
Hi all,
First off, thank you for the overwhelming response last time. I'm still
trying to figure out the syntax of R to plot some distributions of some
frequencies. I've managed to plot histograms from the data, but I would
like to clean it up using xyplot from library(lattice). Unfortunately
I cannot find a solution to my problem.
Given a dataframe "all2", with numerical
2010 Jun 07
1
Transforming list to data frame with corresponding columns
Hi all,
Consider the following.
a<-list(c("MHsub","MHsub","SFD","Duplex"))
b<-list(c("MHsub","MHsub","SFD"))
c<-list(c("MHpark","SFD","SFD"))
d<-list(c("MultiFam","MultiFam","MultiFam","Duplex"))
all<-list(a,b,c,d)
2011 Jul 06
1
question about getting things out of an lapply
Dear R-help subscribers,
I have a quite stupid question about using lapply. I have the following
function:
create.gradient <- function(i){
colorgrad01<-color.scale(seq(0,1,by=0.01), extremes=c("red","blue"))
tree1$edge[i,1] -> x
tree1$edge[i,2] -> y
print(x)
print(y)
all2[x] -> z
all2[y] -> z2
round(z, digits = 2) -> z
round(z2, digits = 2) -> z2
2005 Feb 23
1
How to conctruct an inner grouping for nlme random statement?
Hello. Im hoping someone can help with a grouping
question related to the "random=" statement within the
nlme function. How do you specify that some grouping
levels are inner to others? I tried several things,
given below.
Lets say I have a data frame with five variables,
resp, cov1, ran1, ran2, group1, and group 2. The
formula is resp~cov1 + ran1 + ran2, where the ran are
random
2009 Jan 27
1
Problem with RMA using limma, oligo and pdInfoBuilder packages
Hi,
I am a Ph.D. student from Québec, Canada. I’m a beginner with R and
Bioconductor. Until now the only experience I have is in analyzing
microarray data using affy and limma packages. Now I am trying to analyze
Rat Gene 10 st arrays and I would like to run RMA analysis and Smyth
moderated t test on those arrays. Since no cdf official package is available
for those arrays, after reading many
2005 Mar 29
4
slide show with R
Trying to use R to build an interactive "slide show", to be displayed on a
projector. The purpose of the presentation is to show how one could
construct a simple graph using R. It is meant as a general overview rather
than as detailed instruction.
For example, something like the following sequence of commands. At
lecture time, I want the interpreter to read these commands one at a
2013 Sep 01
1
Intersect 2 lists+bring extra columns
Hi everyone,
I am pretty new to R, so be patient.
I am trying to intersect 2 columns and in the rows that intersect, I want
information from the 3rd column to be brought with it. I think it will be
easier to explain with an example example.csv
<http://r.789695.n4.nabble.com/file/n4675136/example.csv> .
In my example, I have a reference list of fruit (first column), and my fruit
of
2010 Nov 22
2
xlim=c(min(x), max(x)) still produces extra margin on both sides of x axis in plot()
code:
op <-
par(bg='black',fg='gray',col='gray',col.axis='gray',col.lab='gray',col.main='gray',col.sub='gray',mai=c(0,0,0,0),
tck = 0.01, mgp = c(0, -1.4, 0), mar=c(0,0,0,0))
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(1,1,1,
0.5),yaxt="n", ann=FALSE)
abline(v=c(min(x),max(x)), lty=3,
2011 Dec 14
2
plot matrix of characters
Hi, I am looking for options to plot the following type of matrices:
"A" "B" "C" "D"
"A" "A" "C" "C"
"A" "A" "A" "C"
as a image like this: http://www.phaget4.org/R/image002.jpg
2001 May 17
2
memory
hello,
I am using R1.2.2 on win98 with 64 meg of RAM
I try to read a big csv file and get the error :
a <- read.csv("c:/all2.csv",header=T)
Error: vector memory exhausted (limit reached?)
In addition: Warning message:
Reached total allocation of 16Mb: see help(memory.size)
Lost warning messages
from there on, nothing works
File-Exit, ^F4, q() , top right cross, the same message
2008 Oct 03
1
Point of intersection
Hi,
Let say I have a normal density X~n(0,1) and I have a line y=0.01x+0.07. the
following code generate the plots.
x=seq(-10,10,length=100)
plot(x,p1,type='n',ylab="Density",main="Overlap Measure",xaxt="n",yaxt="n")
pi=dnorm(x,0,1)
points(x,p1,type='l')
abline(0.07,0.01)
you can see that the curves intersects at 3 points. My question is
2003 Nov 24
4
R postscript generation error (lines versus points) (PR#5285)
Full_Name: Stephen Harker
Version: 1.80
OS: linux (Yellow Dog 3.0 on ppc)
Submission from: (NULL) (130.194.13.101)
In creating a postscript file from a set of data in which the points are
plotted
using `points()' and lines drawn using `lines()' I have found since upgrading
from R version 1.4? to 1.8 that the two sets do not coinicide completely. This
is best illustrated by a simple
2004 Mar 24
5
colors, lines, characters .... documentation
Hi,
Very so often when i am plotting something, doing a histogram, or
whatever i am struggling to find out which are the numbers for
different colors, palette names, types of lines, symbols, etc. Is
there any documentation on line with all these numbers / names
and the associated symbol / color???
For example if i am using the command image it uses a palette
from red to yellow, with red the
2008 May 28
1
heatmap-changing column or row names
Dear R Community,
I am trying to create an heatmap for the following set of data:
##example of data matrix
o4
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18
green 27 28 29 29 28 28 26 25 25 23 23 22 22 21 21 22 22 22
yellow 6 8 8 7 7 7 6 6 6 7 7 7 6 6 6 6 6 5
red 15 15 15 15 15 15 14 13 12 11 12 10 9 8 7 6 8 9
pink
2010 Sep 21
1
Colorramp in Maptools, how to choose min and max values for the fg= argument
Hello,
I am using maptools for plooting geographical data.
The colour of the region indicates some region dependent value
(population for example).
I pass the colours of the regions to the plot.Map function by defining
the foreground colour:
jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
"#7FFF7F", "yellow",
2013 Oct 10
1
pairs plot
my data are matrix with 3 numeric columns.
would like to have pairs plot
with scatterplots in the upper
with hist at the diag
and with correlation at the lower.
actually default pairs does almost what I want but looks semi awesome.
Especially, i didn't find out how to remove the axes from the lower
part where I do only want to display the numeric values correlations
there and somehow axes
2009 Oct 09
4
Trendline for a subset of data
Dear all,
I am using abline(lm ...) to insert a linear trendline through a portion of my data (e.g. dataset[,36:45]). However, I am finding that whilst the trendline is correctly displayed and representative of the data portion I've chosen, the line continues to run beyond this data segment and continues until it intersects the vertical axes at each side of the plot.
How do I display the
2012 Oct 24
4
Z score
Hi,
I need to find the z-score of the data present in a speardsheet. The values
needs to be calculated for each gene across the samples (refer the
example). And, it should be a simple thing, but I am unable to do it right
now !
The example re the structure of the spreadsheet is -
# Example:
MyFile <- read.csv( text=
"Names,'Sample_1','Sample_2','Sample_3'
2011 Dec 12
0
Rsolnp package: warning messages
Dear,
I am using the solnp command (package Rsolnp) for a problem with
equality and inequality constraints.
I am not getting convergence for my problem but apart that I get 1
warning per iteration saying: ?In cbind(temp, funv) : number of rows
of result is not a multiple of vector length (arg 1)?.
I checked for equality and inequality functions and they seem fine to
me. Where this