Hi:
Here's another take with ggplot2:
library(ggplot2)
# Define the basic plot elements. First argument is the data frame.
# aes() refers to the plot's aesthetics, which refer to the variables
# mapped to specific 'roles' in the plot 'geoms'
g <- ggplot(x, aes(x = Age, y = Trait))
g + geom_poin
On 2010-10-27 03:17, Ivan Calandra wrote:
Hi,
The best I've found (but definitely not the best!):
x<- read.table(textConnection("Group Ind Age Trait
1 1 2 21
1 2 1 22
1 2 2 21
1 3 1 24
1 3 2 45
1 4 1 23
1 4 2 26
2 1 1 45
2 1 2 12
2 2 1 25
2 2 2 26
2 3 1 45
2 3 2 43
2 4 1 23
2 4 2 47
"), header=
Hi,
The best I've found (but definitely not the best!):
x <- read.table(textConnection("Group Ind Age Trait
1 1 2 21
1 2 1 22
1 2 2 21
1 3 1 24
1 3 2 45
1 4 1 23
1 4 2 26
2 1 1 45
2 1 2 12
2 2 1 25
2 2 2 26
2 3 1 45
2 3 2 43
2 4 1 23
2 4 2 47
"), header=T)
str(x)
'data.frame': 15 obs. of 4 v
3 matches
Mail list logo