Re: [R] Help with Plot

2015-08-04 Thread Peter Langfelder
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

Re: [R] Help with plot Grouped Bar Plot by using R

2012-03-14 Thread Bert Gunter
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

Re: [R] Help with plot Grouped Bar Plot by using R

2012-03-14 Thread R_beginner_starter
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

Re: [R] Help with plot Grouped Bar Plot by using R

2012-03-13 Thread R_beginner_starter
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

Re: [R] Help with plot of PCA analysis (new user to R)

2012-03-08 Thread Guido Leoni
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

Re: [R] Help with plot of PCA analysis (new user to R)

2012-03-08 Thread darkpollo
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

Re: [R] Help with plot Grouped Bar Plot by using R

2012-03-07 Thread Jim Lemon
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

Re: [R] Help with plot Grouped Bar Plot by using R

2012-03-06 Thread R_beginner_starter
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

Re: [R] Help with plot Grouped Bar Plot by using R

2012-03-06 Thread Jim Lemon
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

Re: [R] help with plot layout

2009-01-29 Thread Jim Lemon
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

Re: [R] help with plot layout

2009-01-28 Thread Greg Snow
We don't have your data, so we cannot reproduce what you are doing and the plot was stripped off before we saw it (only certain types of attachments are allowed, and some e-mail programs don't give the correct information about attachments so even those types can be stripped if it is not clear w

Re: [R] Help with Plot/Legend

2009-01-13 Thread jimdare
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

Re: [R] Help with Plot/Legend

2009-01-13 Thread jim holtman
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",