Hello
I have a data set summarized like this:
File name= Height
Group Ind Age Trait
1 1 1 20
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
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
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=T)
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 +
4 matches
Mail list logo