[R] Row-Echelon Form

2007-09-03 Thread Peter Danenberg
I was looking for an R-package that would reduce matrices to
row-echelon form, but Google was not my friend; any leads?

If not, I wonder if the problem could be expressed in terms of
constraint satisfaction...

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Boxplot names format

2007-04-11 Thread Peter Danenberg
 I create a boxplot but the names are too longs and i cant see them
 complete.

 If you're referring to labels on the x-axis, Jose, I'll
sometimes rotate them and increase the bottom margin:

 # Increase bottom margin by 0.1
 par(omd=c(0,1,0.1,1))
 boxplot(...)
 # Add perpendicular labels
 axis(1, at=1:length(labels), labels=labels, las=2)

 For another strategy, see Kickstarting R: Text in  the
margins.*

Best, Peter

---
  * http://cran.r-project.org/doc/contrib/Lemon-kickstart/kr_mtext.html

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] how to reverse a list

2007-04-11 Thread Peter Danenberg
 I am wondering if there is a quick way to reverse a list . . . .


 Did you try rev()?

Best, Peter

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Barplot legend position

2007-04-10 Thread Peter Danenberg
 However, the legend does not reproduce the color/shading used in the
 original barplot, are those available somehow?


 Actually,  Ingmar, there's a more elegant way to recre-
ate the original colors; to expand on your example:

 data - 1:10
 rows - 2
 cols - 5
 labels - c('left', 'right')
 position - 'topleft'
 colors - gray.colors(rows)
 inset - c(0.1, 0.1)

 height = matrix(data, rows, cols)
 barplot(height, beside=T)
 legend(position, labels, fill=colors, inset=inset)

 The key is the `gray.colors()' palette; and `inset'  is
for beautification.

Best, Peter

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.