Displaying 20 results from an estimated 200 matches similar to: "Plotting female and male signs"
2006 May 23
2
Environment problems
Dear list readers,
Can someone of you explain this behavior. Here's a toy example:
Start by constructing a function tmp
>fix(tmp)
In the default editor enter this one-liner:
hist(rnorm(10))
close the editor and run environment on the function.
> environment(tmp)
<environment: R_GlobalEnv>
Open the editor and remove the last parenthesis, this will make the
editor choke.
2001 Oct 25
2
How to save boot objects?
Hi,
I have problem with saving and later sourcing boot objects. A short
familiar example...
R : Copyright 2001, The R Development Core Team
Version 1.3.1 (2001-08-31)
...
> library(boot)
> data(city)
> ratio <- function(d, w)
+ sum(d$x * w)/sum(d$u * w)
> boot.res<-boot(city, ratio, R=999, stype="w")
> dump("boot.res","boot.res.R")
>
Save
2003 Aug 20
1
Filled triangles in lattice graphics?
Dear R users,
I can get a filled triangle pointing upwards by specifying pch=17 in
xyplot or lpoints, but how do I get a filled triangle that points downwards?
In the standard plot function it's possible to use
plot(x,y,pch=25,bg="black"), but bg= doesn't seem to work with lattice
and lpoints.
Thanks,
Hans Gardfjell
Ecology and Environmental Science
Ume? University, Sweden
2002 Jul 29
2
Bug or feature in xyplot?
Hi,
Can someone of you tell me why these two simple examples works as
"expected",
plot(c(1,1,2,2)~c(1,2,1,2),col=c(1,2,3,4),pch=c(1,2,3,4))
coplot(c(1,1,2,2)~c(1,2,1,2)|c("A","A","B","B"),col=c(1,2,3,4),pch=c(1,2,3,4
))
but when I try it with xyplot in the lattice package it fails.
2013 Jul 01
1
Male and female signs as subscript in plot
Hello,
I'd like to add labels to my plot that include a male or female symbol as
subscript.
I'm working in Windows Vista and R 3.0.0.
I am able to add the male symbol to the plot as regular text (NOT as
subscript), e.g. with:
mtext("Male\u2642")
This displays the word "Male" followed by the male symbol on the plot.
But "\u2642" does not work when I try to
2006 Feb 11
2
how do I "relate" tables in R?
Hi all,
I'm new to the list...pretty new at learning to code in R...
Is there a way to relate 2 different arrays in R?
Hypothetical example:
data1
ID z
1 100
2 250
3 75
4 12
5 89
data2
ID z
1
1
1
1
2
3
4
3
4
5
5
5
etc.
Goal is to fill column z in data2 with appropriate z-values from data1 that
correspond to a given ID.
I'm looking for something akin to a
2007 Oct 03
2
Windows OS, R and unicode
I'm trying to use the biological female and male signs in R2.5.1 under
Windows XP. I can access and insert these symbols using word-processors.
In general these should be available as \u2640 and \u2642 but I can't
make them happen in R using (say) text(5,5, "\u2640") message "invalid
\uxxxx sequence"
I've replaced Arial with Arial unicode MS in Rdevga and
2006 Feb 11
2
aggregate vs tapply; is there a middle ground?
Dear all,
I'm wanting to do a series of comparisons among 4 categorical variables:
a <- aggregate(y, list(var1, var2, var3, var4), sum)
This gets me a very nice 2-dimensional data frame with one column per
variable, BUT, as help for aggregate says, <<empty subsets are
removed>>. I don't see in help(aggregate) how I can change this.
In contrast,
a <- tapply(y,
2003 Apr 18
1
Problem with eigen() and LAPACK
Hi all,
when testing the new improvements in the new 1.7.0-version I stumbled
over the following:
>eigen(matrix(c(0,.3,2,.9),2,2))
Error in eigen(matrix(c(0,.3,2,.9),2,2)) :
LAPACK routine DGEEV gave error code -13
>eigen(matrix(c(0,.3,2,.9),2,2),EISPACK=TRUE)
$values
[1] 1.3458236 -0.4458236
$vectors
[,1] [,2]
[1,] -1.1436890 -0.9760443
[2,] -0.7696018
2002 Nov 21
1
Distance between points and a polygon?
Dear R users,
I know that this could easily be solved within a GIS-package, but
sometimes it's more convenient to use R. So here's my question anyway...
Does anyone of you know about any R-functions/code that calculates the
distance between a number points and a polygon or polyline? I have
looked thru the different libraries that deals with spatial statistics
but haven't found
2007 Apr 26
2
Changing Voice from Male to Female
Hi List,
I wanted to know if anyone knew of a way with asterisk to "switch the voice" of a caller from male to female or vice versa.
Thanks.
Dovid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070426/2d483875/attachment-0001.htm
2005 Oct 22
4
Male and female symbols?
Does anyone have an idea of how one might plot male and female
symbols on a graph using R? Thanks!
..................................................................
George W. Gilchrist Email #1: gwgilc at wm.edu
Department of Biology, Box 8795 Email #2: kitesci at cox.net
College of William & Mary Phone: (757) 221-7751
Williamsburg, VA
2006 Jul 11
2
detach
We try the following:
search()
as.Date(1)
zoo:::as.Date.numeric
under three circumstances:
1. on a fresh session
2. after issuing library(zoo) noting that as.Date.numeric is provided by zoo
3. after detaching zoo
as.Date(1) fails on #1 but succeeds in #2 and #3. Should it not fail in #3
since zoo was detached? Is this how its supposed to work?
(Note that entering zoo:::as.Date.numeric at
2002 Oct 31
7
Symbols for male/female
Dear all,
I would like to use the biological symbols for male and female as plotting
symbols in a scatterplot (ideally filled and non-filled). R does not seem
to have these symbols using pch= in plot() nor are they implemented via
expression() or at least I did not find them. I found that the symbols are
e.g. available in the wasysym and the marvosym package in LaTeX.
I have coded two very rough
2002 Oct 31
7
Symbols for male/female
Dear all,
I would like to use the biological symbols for male and female as plotting
symbols in a scatterplot (ideally filled and non-filled). R does not seem
to have these symbols using pch= in plot() nor are they implemented via
expression() or at least I did not find them. I found that the symbols are
e.g. available in the wasysym and the marvosym package in LaTeX.
I have coded two very rough
2008 May 29
1
boxplot with text and symbols on x
Hello R-user community!
I am running R 2.7.0 on a Power Book (Tiger). (I am still R and
statistics beginner)
I did the following :
pdf("InLnegthMaxHomogeneity.pdf")
boxplot(inflorescence_length_Max~Sex, main="Bartletts Homogeneity for
inflorescence length",data=FemMal_Sex)
Homo<-bartlett.test(FemMal_Sex$inflorescence_length_Max,FemMal_Sex$Sex)
text( 2, 500,
2006 Jul 12
1
RODBC, missing values, and Excel
Hi, all,
I'm trying to use RODBC to read data from Excel. However, I'm having
trouble converting missing values to NA and rather perplexed by the
output. Below illustrates my problem:
## DATA - copy to Excel and save as "tmp.xls"
## tmp.xls!Sheet1
x
0.11
0.11
na
na
na
0.11
## tmp.xls!Sheet2
x
0.11
0.11
na
na
na
na
0.11
## R Code
read.xls <- function(file, sheet =
2006 Feb 12
0
SUMMARY: aggregate vs. tapply
Hi all;
Thanks for the responses to my query of how to make tapply into a table
instead of an n-dimensional array. Summary of responses follows:
Peter Dalgaard:
as.data.frame(with(tmp,as.table(tapply(C,list(A=A,B=B),sum))))
Phil Spector wrote:
z = tapply(y,list(var1,var2,var3,var4),sum)
data.frame(do.call('expand.grid',dimnames(z)),y=do.call('rbind',as.list(z)))
Hans
2006 Sep 18
2
Help for methods
Help for help says:
The 'topic' argument may also be a function call, to ask for
documentation on a corresponding method. See the section on
method documentation.
and
The authors of formal ('S4') methods can provide documentation on
specific methods, as well as overall documentation on the methods
of a particular function. The
2006 Jun 10
2
Regex engine types
> version
_
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 2.1
year 2005
month 12
day 20
svn rev