ve.factor is ok:
x <- data.frame( grp = factor( c(10,20,10,10), levels=c(10,20,99) ) )
-----
Wolfram Fischer
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
The problem is solved in R 1.8.0.
[Excuse me for the previous message...]
Wolfram
--- In reply to: ---
>Date:24.10.03 09:16 (+0200)
>From:Wolfram Fischer - Z/I/M <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [R] ave and factors with unused levels
>
``ouput'' should be ``output'':
The ouput produced by 'filled.contour' ...
^^
Wolfram
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
text( pos=NULL ) is working.
ltext( pos=NULL ) gives an error message:
"argument is of length zero"
Wolfram
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
wn option to `s'
config.status: creating Makefile
sed: -e expression #1, char 295: Unknown option to `s'
config.status: creating afm/Makefile
sed: -e expression #1, char 299: Unknown option to `s'
config.status: creating doc/Makefile
...
Wolfram
Since ``codes'' is deprecated, the reference to ``codes''
in ``See also'' of the ``factor'' help page should be updated
and refer to ``unclass''.
Wolfram
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
or factors
___COMMENT
levelplot( yield ~ as.numeric(year) * as.numeric(variety) | site, barley )
is working but the labels are nasty.
Best regards
Wolfram
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
Zu Ihrer Information: Unsere Betriebsferien
dauern bis zum bis 3.8.2004.
Mit freundlichen Gruessen - Wolfram Fischer
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
y ), cex=5 )
panel.grid()
} )
Wolfram Fischer
__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-devel
ckage='vcd' )
attach(Lifeboats)
plot( launch, total )
text( launch, total, labels=seq( along=as.vector( launch ) ) )
detach(Lifeboats)
Wolfram Fischer
__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-devel
The URL cited in help("swiss")
http://opr.princeton.edu/archive/eufert/switz.html
seems to have changed to:
http://opr.princeton.edu/archive/pefp/switz.asp
Wolfram
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailma
distance
between two neighbouring tickmarks.
Wolfram Fischer
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
I would propose to add "
See also:
`nchar' for counting the number of character in
character vectors.
"
to the helpfile of length(),
because it is rather difficult
to find nchar() if one has only
search terms as "length", "len",
&
I would propose to add an option ``family''
to RweaveLatex() resp. RweaveLatexSetup()
in order to be able to set the font family
for postscript and pdf graphics:
<>=
...
@
Thanks
Wolfram Fischer
__
:
if (!missing(pos) && ! is.null(pos) )
Wolfram
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
, par.strip.text=list( lines=strip.lines )
, strip=strip.fun
, between=list( y=1.5 )
, ...
))
}
Wolfram
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
In R 1.9.0, make.names will accept "_" as a valid character
for a syntactically valid name.
I would appreciate to have an option in ``read.delim'' (etc.)
that would change "_" in headers of input files to "."
for compatibility with code and data written
--- In reply to: ---
>Date:04.03.04 18:45 (+)
>From:Barry Rowlingson <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [Rd] 1.9.0-devel: _ in read.delim and make.names
>
> Wolfram Fischer wrote:
> >In R 1.9.0, make.names will accept &qu
- CALC.ridit()
- CALC.ridit( attr.groups=c('x','x','y','y') )
- CALC.ridit( attr.groups=data.frame( G1=c('1x','1x','1y','1y'),
G2=c('2x','2x','2y','2z') ) )
Wolfram
CALC.ridit <-
o calls to polygon()
within mosaicplot.default()
c) copying and adjusting the help page entry for ``border''
of ``?polygon''.
Regards - Wolfram
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
.catlevelplot.esoph()
- example2.catlevelplot.esoph()
Wolfram Fischer
#-- CODE --
panel.catlevelplot <- function (x, y, z, wx, wy, zcol, col.regions, subscripts
, ...
, z.factor.min = 0.02 # factor for z range expans
PROPOSAL (a)
I would like to propose an argument to mosaicplot.default()
which allows to inscribe the label of the last dimension
into each cell of the mosaicplot.
This could make mosaicplots more easily interpretable.
PROPOSAL (b)
There could be an argument which
the time to inform about my observation.
Wolfram Fischer
--- In reply to: ---
>Date:22.01.03 14:13 (+)
>From:[EMAIL PROTECTED]
>To: To [EMAIL PROTECTED]
>Subject: Re: [Rd] text() does not accept data of type POSIXlt (PR#2487)
>
> Where is the R bug here?
>
= list( labels = levels( esoph$agegp ) )
, y = list( labels = levels( esoph$alcgp ) )
)
I do not yet have a code for that.
Wolfram
--- In reply to: ---
>Date:21.01.03 21:27 (-0600)
>From:Deepayan Sarkar <[EMAIL PROTECTED]>
>To: To Wolfram Fischer - Z/I
nicer.
Wolfram
# ADDITIONAL ARGUMENT FOR levelplot() --
zlim = range(z[!is.na(z)]),
# ADDITIONAL CODE IN levelplot() ---
#--- ORIGINAL ---
# zrng <- extend.limits(range(z[!is.na(z)]))
#---
I suggest to add an argument to levelplot
which displays the z values in the cells.
In the special case of a correlogram the correlation values could
be rotated by 45 degres when the correlation is positive and by
-45 degress when the correlation is negative (see example).
Wolfram
NB: The same
I propose to add a function that allows
to display colors selected by a text pattern
or by color vectors in a plot.
Wolfram Fischer
#--- showcolors.R
showcolors <-
function(
col = "red"
, index = NULL
, pie = TRUE
, lwd = 6
`levelplot'.
Perhaps the arguments in the following code could be
simplified.
Wolfram Fischer
#--- twotailed.colors.R
twotailed.colors <-
function(
n = 7 # number of colors to be in the palette
, n5= n %% 2# numbe
I propose to add to traceback three new arguments:
- file : filename for output
- strip: strip each line of backtraced code to ``width'' characters
- width: the length of the stripped output text (default 76)
Below you find a proposal for the code changes.
Wolfram
traceback &
Thanks for the inputs!
I have adjusted the function:
- it shows now a pie or lines and bars (default)
- it stops if there is no match for the searched color string
- it returns the list of the colors
Below you find the proposed new code.
Wolfram
#--- showcolors.R
showcolors <-
funct
1e+07 1.2e+07 1230 1234
8 1e+08 1.2e+08 1.23e+08 12340
9 1e+09 1.2e+09 1.23e+09 1.234e+09
I would expect/propose that the scientific notation in this
example with 4 significant digits begins only at line 9 in
all columns.
Wolfram
___
format() did not well the job I wanted.
But I arrived to solve my problem using (e.g.):
formatC( signif( 1.234 * 10^(1:8), 3 ), digits=7, flag='-' )
--- In reply to: ---
>Date:06.02.03 15:53 (+)
>From:[EMAIL PROTECTED]
>To: To Wolfram Fischer - Z/I
im _and_ ylim are given as arguments.
To accept ylim, the code could be:
if (missing(xlim) && missing(ylim))
xlim <- ylim <- rangx1 <- rangx2 <- range(rangx1, rangx2)
else{
if (missing(xlim))
xlim <- rangx1
if (missing(
t( .., main=main, ... )
...
plot( .., main=main, ... )
...
}
Wolfram
__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-devel
34 matches
Mail list logo