| To: | s-news@wubios.wustl.edu |
|---|---|
| Subject: | [S] simple graphing question |
| From: | "Gilliam, Reid" <rgilliam@grci.com> |
| Date: | Tue, 19 Sep 2000 15:06:36 -0400 |
| Sender: | owner-s-news@wubios.wustl.edu |
Hi all,
I have a relatively simple graphing question I believe. Suppose I have a
data frame that looks like this:
V1 V2
--------------------
abc .11
def .12
abc .18
def .24
abc .33
where V1 is a factor variable and V2 is a double (numeric) variable. (I am
using S-PLUS 2000 release 3 on Windows NT 4.0)
If I create a scatterplot using this data with V1 on the x-axis and V2 on
the y-axis, I get the following type of graph:
_________________________________________
.4 | |
| x |
.3 | |
V2 | x |
.2 | x |
| |
.1 | x x |
|________________________________________ |
abc def
V1
Here, "abc" and "def" are clearly marked on the x-axis with the column name
"V1" labeled underneath the column values.
However, suppose I have this data frame instead:
V1 V2
--------------------
abc .11
abc .12
abc .18
abc .24
abc .33
If I create a scatterplot using this data with V1 on the x-axis and V2 on
the y-axis, I now get the following:
_________________________________________
.4 | |
| x |
.3 | |
V2 | x |
.2 | x |
| |
.1 | xx |
|________________________________________ |
V1
Here, "abc" is not identified on the x-axis, but the column name "V1" is
given with the tick mark.
Instead of the graph directly above, I would like to show the value of V1 at
the tick mark instead of "V1". That is, I would like this:
_________________________________________
.4 | |
| x |
.3 | |
V2 | x |
.2 | x |
| |
.1 | xx |
|________________________________________ |
abc
Is there any way to do this?
Thanks in advance!
Reid Gilliam
GRCI Inc.
Vienna, VA
rgilliam@grci.com
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [S] avas code, Joseph P. Kaboski |
|---|---|
| Next by Date: | [S] New version of STPLAN -- calculates statistical power and sample size, Barry W. Brown |
| Previous by Thread: | [S] avas code, Joseph P. Kaboski |
| Next by Thread: | [S] New version of STPLAN -- calculates statistical power and sample size, Barry W. Brown |
| Indexes: | [Date] [Thread] [Top] [All Lists] |