search for: the_data

Displaying 4 results from an estimated 4 matches for "the_data".

2010 Nov 20
2
plotting a timeline
...low). I have placed the x-axis ticks on a fixed y-height (-0.1 and -0.05), but this might look badly with a different dataset or at other image proportions. I'd rather do this with a dedicated package function ( like axis() ). -- mrgomel ----------------------- Below is my example code in R: the_data <- structure(list(eventtime = c(1914L, 1917L, 1918L, 1939L, 1945L, 1963L, 1989L, 2001L, 2003L), impact = c(1, -.5, 0.8, 1, 0.8, 0.5, -.5, 0.5, 1), label = structure(c(8L, 7L, 4L, 9L, 5L, 2L, 3L, 1L, 6L), .Label = c("9/11", "Cuban crisis", "end of communism", "e...
2007 Jan 14
3
ListCtrl help
...'d expect that being able to quickly whip up a cross platform data viewer is a popular reason to use wxRuby. -Hawley ------------------- def on_col_left_click(event) @log.write_text("col clicked, id=%d" % event.get_column()) if @sort_column == event.get_column() @the_data.reverse! else @sort_column = event.get_column() @the_data.sort! {|a,b| a[@sort_column]<=>b[@sort_column]} end @the_data.each do |d| @log.write_text( "%s %s" % [d[0], d[4]]) ## just sorting on the d[4] column while debugging end...
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...Zouw5hf_ROvSVDzk8mgJGjLMwCb5d4 at mail.gmail.com> Content-Type: text/plain 2010/11/20 Marcin Gomulka <mrgomel at gmail.com> > I'd rather do this with a dedicated > package function ( like axis() ). Probably you have to write your own function, or tune up manually plot. plot(the_data$eventtime, abs(the_data$impact), type="h", frame.plot=FALSE, axes = FALSE, xlab="",ylab="", col="grey",lwd=2,ylim=c(-2,2),xlim=c(1913,2005)) text(the_data$eventtime,the_data$impact+.1, the_data$label,cex=.6,adj=1) lines(x=c(1914,2003),y=c(0,0),lwd=2,col=&quot...
2009 Jan 28
2
t.test in a loop
Hi All, I've been having a little trouble with creating a loop that will run a a series of t.tests for inspection, Below is the code i've tried, and some checks i've looked at. I've used the get(paste()) idea as i was told previously that the use of the eval should try and be avoided. I've run a single syntax to check that my systax is correct and works without any problems