similar to: colors on graph

Displaying 20 results from an estimated 3000 matches similar to: "colors on graph"

2006 Jul 20
1
hist or barplot
Hi all, I wish to draw 2 hist (or barplot) on the same graph. I can do it simply by using par(new=TRUE) , but it overlap with the first drawn, how to tell R to put in front of the graph the min value of the two graph in order for it to be seen and don't hide each other. I've been looking at help for barplot or hist but didn't find anything... (or my english is too poor to
2006 May 16
1
variable row names
Hy all, I wish to use a variable as rownames for a set of datas. By example : > nom<-"toto" > prenom<-"tutu" > res<-c(1,2) > res<-t(res) > res [,1] [,2] [1,] 1 2 > colnames(res)<-c(nom,prenom) > res toto tutu [1,] 1 2 > nom [1] "toto" > I wish to call the rowname by the
2007 Jan 04
3
problem with plot() and POSIXt dates
Hy all, I'm plotting graphs using plot() function, they are on X axes POSIX dates: "POSIXt" "oldClass" "POSIXct" "POSIXlt" I can't figure out why sometimes it prints the month and days and sometimes it prints the unix timestamp. It appens usually when the xlim is short like only some days. xlim is settled as a POSIXt like this "2006-12-30
2006 Apr 18
5
3D pie
Hi all, Is there a way to draw 3D pie with R (like excel does)? I know how to do it in 2D, just by using pie(something)... I know it isn't the best way to represent data, but people are sometimes more interested by the look and feel than by the accuracy of the results... If there is no way, have you another suggestion ? (i already use dotchart instead of pie) Thks to all of
2006 Nov 23
2
converting from numeric to Date
Hi all, I have a Date, that has been converted to a number that represent the count of seconds since year 1970, how do i convert it to a date ? Example : >Limite_x<-c(1131408000,1163548800) >is(limite_x) [1] "numeric" "vector" But these numbers are dates, did R provide something that give you the date from this numeric vector ? Thks all. COMTE
2006 Jun 20
2
timediff
Hello, I've got 2 dates like these : "2006-02-08 17:12:55" "2006-02-08 17:15:26" I wish to get the middle of these two date : "2006-02-08 17 :14 :10" Is there is a function in R to do that ? Thks all guillaume [[alternative HTML version deleted]]
2006 May 17
0
variable colnames
Hy all, I apologize i've used rownames instead of colnames in my first exemple. (that's why i changed the mail object) I was on mars when i wrote my question... Every answer where correct ... but, because i've made a wrong question, people wern't able to understand... So finally i'm speaking about colnames : Let's be more precise: I've got a query that gives me for
2006 Aug 30
1
Datetime
Hi all, I'm getting confused by date handling. I wish to read a date from a file wich is a number of seconds since 1970 (POSIXct). Then i wish to convert this date to a human readable form (POSIXlt) By example : ctDate<-1132963200 #"Wed Aug 30 14:24:37 2006" is(ctDate) [1] "numeric" "vector" ctDate isn't a numeric vector, it is a
2005 Nov 24
1
font size in legend
Hy all I use barplot to draw frequencies by dates. On the x axis it shows only 1 date for 2 bars, i've understand why, because R cant put so much date on the same axis, it will get out of the graph. that's why i tought about reducing the size of the font used to stamp the x axis. anyone knows the right way? i've tryed par(cin) and barplot(cin=3) but it says i cannot do it at this
2005 Dec 16
1
column name of a table
hy all, I wish to switch in a part in my code that use "read.table" to "scan", actually i use this: tab<-scan("data.dat",what=integer(),skip=1) dim(tab)<-c(75,length(tab)/75) tab<-t(tab) It gives me a new tab with 75 columns, but i when i was using read.table with headers then attach i could use the columns names to access the data values, now how can i
2006 Jan 04
1
produce hours greater than 23
Hy all, I wish to use the date function to draw againt the lifetime of a motor. This lifetime is given to me in Hours (it can go over 5000 hours) I'm unable to find how to convert this lifetime value to something like %H:%M:%S because when R see 24H it says 1 day, i don't want that, i just want %H:%M:%S with a value of %H higher than 24... for example: i've got this value in hours:
2005 Dec 07
2
concatenate data frame
hi all Here is a small part of my code: tab_tmp<-tab[1:(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])),length(tab)]; tab_tmp1<-tab[(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])):length(TotalFillTimeHours),length(tab)]; tab<-c(tab_tmp,tab_tmp1); attach(tab); Here is the output: Error in attach(tab) : attach only works for lists and data frames Execution halted
2006 Aug 16
0
Strange behavior with "hist" function filled with breaks and freq attribute
Hy all, I give example code : connexions_jours<-c(1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,7,7,7,7,7,7,7,7,8,8,8,12,15,19) pas_de_groupe<-1 hist(connexions_jours,col="red",xlab="RĂ©partition du nombre de connexions par jours (sans
2006 Oct 18
0
dev2bitmap handling or else?
Hy all, I wish to get rid of starting X to get graphics, i tryed dev2bitmap and i've being working around without finding good parameters. By example : Dev2bitmap(file="Rplot001.png", type = "png256",width=600/72,height=486/72) par(mar=c(5,2,1,1),xaxs = "i", yaxs = "i",ps=13) I tryed with res=something inside dev2bitmap too and i'm
2006 May 18
8
Concatenated key
Hi all, I started playing a couple days ago with Rails and it find it very interesting. But I''m a bit stuck with making it work with a concatenated primary key. I want to use my own names for the DB fields and I''m using SQL Server 2005. My tables look roughly like this: CREATE TABLE USERS ( USR_ID VARCHAR(25) NOT NULL PRIMARY KEY, USR_PASS VARCHAR(25) ) CREATE TABLE
2006 Jul 06
2
questions on data management
Dear friends, suppose i have two datasets: A and B A: id<-1:6 x<-c(1,2,3,4,5,6) y<-c(2,4,6,8,3,2) xy<-data.frame(id,x,y) B m<-c(1,1,3,3,5,5) n<-c(2,2,6,6,3,3) mn<-data.frame(m,n) Now, i want to perfomr two tasks: 1. get a subset of B,no duplicate values,: C: m n 1 2 3 6 5 3 2.Extract the values in A on the conditions that x=m and y=n the results should be: id x y 1 1 2 3
2006 Jul 18
2
A contingency table of counts by case
Here is an example of the data.frame that I have, df<-data.frame("case"=rep(1:5,each=9),"id"=rep(1:9,times=5),"x"=round(runif(length(rep(1:5,each=9))))) "case" represents the cases, "id" the persons, and "x" is the binary state. I would like to know in how many cases any two persons a. both have "1", b. the first has
2005 Jul 22
1
multiplicate 2 functions
Thks for your answer, here is an exemple of what i do with the errors in french... > tmp [1] 200 150 245 125 134 345 320 450 678 > beta18 Erreur : Objet "beta18" not found //NORMAL just to show it > eta [1] 500 > func1<-function(beta18) dweibull(tmp[1],beta18,eta) > func1<-func1(beta18) * function(beta18) dweibull(tmp[2],beta18,eta) Erreur dans dweibull(tmp[1],
2005 Oct 18
2
hist of dates
Hi all I wish to draw an histogram... with dates but the following append, i don't know where is the problem, help(hist.Date) works and i don't see any usefull information on what i'm doing wrong... > hist.Date(dt_cycles) Error: couldn't find function "hist.Date" > hist.date(dt_cycles) Error: couldn't find function "hist.date" > cycles [1] 7 1
2005 Dec 08
1
truncate/overwrite a data frame
hi all, I've got a data frame, this data frame have 76 columns and 22600 rows. The data inside can be redundant because the data can be captured simultaneously and overlap each other. My aim is to supress these overlaps I've test some solutions to do that but they all give a big cpu load and eat all of the memory then swap a lot, then killall R because it don't end. actually