Try removing the line
x <- x[order(x[,1], decreasing=TRUE),]
Peter
On Tue, Aug 4, 2015 at 10:58 AM, April Smith wrote:
> Let me just preface that everything I know about writing code for R is self
> taught so this may be really basic but I can't figure it out!
>
> I am using someone else code
Let me just preface that everything I know about writing code for R is self
taught so this may be really basic but I can't figure it out!
I am using someone else code to create plots. I would like to change the
automatically generated colors to the same colors for every plot. The
current code ma
Please stop asking such basic questions on this list and start reading
An Intro to R (ships with R) or any other beginning R tutorial. It
seems to me to be impolite to pester this list for beginners'
instructions without first having made at least a minimal effort to to
familiarize yourself with R
Thanks a lot, Jim.
I get my desired output by using your R script at the end
Yesterday was my mistake
Apart from that, do you have any idea to plot a line graph/chart?
My Input file is shown as below:
Range Data1 Data2
1 38 37
2 38 37
3 38 37
4 37
Hi, Jim
Below is the code that I try and the result I obtained:
*br<-read.table("R_beginner_starter.dat",header=TRUE,sep="\t")
library(plotrix)
barp(t(br[,c(2,4)]))
*
The result generated:
http://r.789695.n4.nabble.com/file/n4468592/ScreenHunter_01_Mar._13_17.10.jpg
Which is different with m
Hi
If you wish to obtain a 3d plot i think you can use tha bpca library.
To test if it works try a code similar to this (after installing bpca
package):
bp<-bpca(pca,lambda.end=3)
plot(bp,var.factor=3,rgl.use=T,obj.name=F)
Regards
Guido
2012/3/8 darkpollo
> I was thinking to create the plot
I was thinking to create the plot manually?
What do you think?
Thanks
On Mar 7, 5:37 pm, darkpollo wrote:
> Hi,
>
> I am new to R and i am not sure if i am doing something wrong.
>
> I have a table with 4500x24 (rowsxcols) elements. The rows are data
> related to each one of the individuals (A,B
Hi,
I am new to R and i am not sure if i am doing something wrong.
I have a table with 4500x24 (rowsxcols) elements. The rows are data
related to each one of the individuals (A,B,C...) located on the
columns.
Example:
A B C D E F
1 5.651296 5.480589 4.253070 3.515593 6.045253 5.916222
4.1
On 03/06/2012 07:09 PM, R_beginner_starter wrote:
Thanks a lot, Jim.
Do you mind to post out the complete content of your R script suggested?
I got add in your R code in my existing R script.
It shown the following error message:
Error in rbind(br[, 2] + 1, br[, 4]) : object 'br' not found
Hi
Thanks a lot, Jim.
Do you mind to post out the complete content of your R script suggested?
I got add in your R code in my existing R script.
It shown the following error message:
Error in rbind(br[, 2] + 1, br[, 4]) : object 'br' not found
Thanks for your further reply.
--
View this message in
On 03/06/2012 03:49 PM, R_beginner_starter wrote:
My input file:
...
http://r.789695.n4.nabble.com/file/n4448762/ScreenHunter_01_Mar._06_12.42.jpg
Hi R_beginner_starter,
If you don't really need the 3D effect, you can get more or less that
plot with this (br is your data):
library(plotrix)
b
My input file:
[code]
Number of Z Number of Data1 Data1 % Number of Data2 Data2 %
0 704512099 99.74% 704423913 99.73%
1 1550142 0.22% 624685 0.09%
2 164297 0.02% 145942 0.02%
3 21515 0.00% 81941 0.01%
4 92380.00% 59188 0.01%
5
mau...@alice.it wrote:
It takes a lot of sweat to generate a composite plot with R ... sigh.
I though I was almost done when I met the umpteenth hurdle. I cannot place a
nice title on the 2nd plot (raw signal)
on the layout. I do not have control on where either the "main" option of "plot"
fun
1.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of mau...@alice.it
> Sent: Wednesday, January 28, 2009 8:52 AM
> To: r-h...@stat.math.ethz.ch
> Cc: gunter.ber...@gene.com
> Subject: [R] help with plo
It takes a lot of sweat to generate a composite plot with R ... sigh.
I though I was almost done when I met the umpteenth hurdle. I cannot place a
nice title on the 2nd plot (raw signal)
on the layout. I do not have control on where either the "main" option of
"plot" function, or "title", place
Thanks Jim,
What happens if I want one solid line and four custom lines
("92","11","12","62).
I tried c("10","92","11","12","62) and it said that you can't use 0's. I
also tried:
ownlines<-c("92","11","12","62)
lty=c(1,ownlines)
which resulted in the same thing.
jholtman wrote:
>
> You c
You can create your own dashed lines:
lty
The line type. Line types can either be specified as an integer
(0=blank, 1=solid (default), 2=dashed, 3=dotted, 4=dotdash,
5=longdash, 6=twodash) or as one of the character strings "blank",
"solid", "dashed", "dotted", "dotdash", "longdash", or "twodash",
Dear R-Users
I have 2 questions:
Firstly, If I create a matplot and legend for multiple vectors and then tag
another vector on using matlines (e.g. a 'total' of all vectors), is there
anyway to add the new line to the legend without recreating it? I have
created the plot this way because I w
18 matches
Mail list logo