[R] How to change symbols in a trellis graph (UNCLASSIFIED)

From: Park, Kyong H Mr ECBC <kyong.ho.park_at_us.army.mil>
Date: Tue, 18 Mar 2008 07:52:05 -0400


Classification: UNCLASSIFIED
Caveats: NONE

Hello, R Users,

I created a trellis graph following methods suggest in "Mixed-Effects Models in S and S-Plus" by Bates and Pinheiro using 'groupedData' and 'outer' commands as follows:

  1. data2<-groupedData(LCU~ST1|Blcok, data=data1)
  2. plot(data2, outer=~SURF).

This produced exactly what I wanted except that the symbol. I want four different symbols for the four levels of ST1 instead of just one circle, and how I do this if I want to use four symbol numbers c(1,2,5,6). The data are given below.

Appreciate your help.

Kyong

       LCU ST1 SURF Block

> 1 6.71 A N 1
> 2 6.97 A Y 1
> 3 6.77 B N 1
> 4 6.90 B Y 1
> 5 6.63 C N 1
> 6 6.94 C Y 1
> 7 6.79 D N 1
> 8 6.93 D Y 1
> 9 6.23 A N 2
> 10 6.83 A Y 2
> 11 6.61 B N 2
> 12 6.86 B Y 2
> 13 6.51 C N 2
> 14 6.90 C Y 2
> 15 5.90 D N 2
> 16 6.97 D Y 2
Classification: UNCLASSIFIED
Caveats: NONE

        [[alternative HTML version deleted]]



R-help_at_r-project.org 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. Received on Tue 18 Mar 2008 - 11:57:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 18 Mar 2008 - 12:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive