s-news
[Top] [All Lists]

Modifying pch= (plot parameter) -Summary

To: s-news@wubios.wustl.edu
Subject: Modifying pch= (plot parameter) -Summary
From: Alain Yamakana <alain.yamakana@rogers.com>
Date: Mon, 29 Aug 2005 13:12:49 -0400 (EDT)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LhomfxN3YlUlLFgDZlMd0XdUIfXhb3jFag0tL69g58HXbsIHpzjhSySzXh8XAVS8QgyoanFp1LH5rrfcAXNAbzaOR3+n+zdlsJ0IfHMVKVDyw3oyW/bxIEApMNT5120F1AUcjNfzppJQl7Q0glOKhYFb4qyBoNu15G9tWINMHnA= ;
Below are kind and prompt suggestions from Thierry Okelinx, John Fennick, and Patrick Burns. Thanks!
 

Try something like this

plot(dataframe$x[dataframe$quarter == 1], dataframe$y[dataframe$quarter == 1], type = ?b?, pch = ?1?)

points(dataframe$x[dataframe$quarter == 2], dataframe$y[dataframe$quarter == 2], type = ?b?, pch = ?2?)

points(dataframe$x[dataframe$quarter == 3], dataframe$y[dataframe$quarter == 3], type = ?b?, pch = ?3?)

points(dataframe$x[dataframe$quarter == 4], dataframe$y[dataframe$quarter == 4], type = ?b?, pch = ?4?)

Cheers,

Thierry

Alain,

codes pch=n are valid for 0 <= n <= 255.
Beyond n = 31, they follow the standard ACSII encoding of  alpha-numerics and common symbols: 32 <- n <= 126 but not others. Do ?ascii for a listing that is correct for 32 <- n <= 126 but not many others.

For the remainder, a slow way to find them is plot(n,n, pch=n)

HTH
john

It is certainly possible, the question is how much work
will it be to make it happen.

Perhaps not the best solution, but you could have 'type="l"' in your plot and then use 'text' to place whatever characters you want.

Patrick Burns
patrick@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")

 

<Prev in Thread] Current Thread [Next in Thread>
  • Modifying pch= (plot parameter) -Summary, Alain Yamakana <=