Madeline Bauer | 4 Mar 05:15 2011
Picon

Adding points to trellis contourplot

Hello,
Is it possible to add points to a trellis contourplot (levelplot)?

If I use contour, I can follow that with points (x, y, ... ) and if I 
use xyplot I can use panel.superpose with groups to plot lines for 
some of the members of the groups and points for others. But I don't 
see how to pass groups to contourplot or how to overlay the points 
for the second member of the group.

Thank you in advance!
Best regards,
Madeline

===
Madeline Bauer, Ph.D.        University of Southern California
Keck School of Medicine (Infectious Diseases)
IRD Room 430, 2020 Zonal Ave, Los Angeles 90033
(323) 226-7504 (campus) 951-847-0912 (cell)
mbauer <at> usc.edu  [Fastest communication method]

--------------------------------------------------------------------
This message was distributed by s-news <at> lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request <at> lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

Dung Tran | 8 Mar 16:21 2011
Picon

Re: Histogram graph function does not display numbers on x axis correctly

Good afternoon  all,

 My name is Ming. I am a graduate student at Georgia State.

May i get your help?

I am trying to create a very simple histogram for my data but it seems  the numbers on the  x axis of the histogram
do not line up correctly.

They should line up in the middle of the bar instead of showing up in the left corner. 

If you have experienced the same problem, may you please give me some advice on how to fix it.

Thanks so much for all of your help.

Attached is the simple code  i used
=====================================================

test <- rnorm (20,0,1)
hist (test)--------------------------------------------------------------------
This message was distributed by s-news <at> lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request <at> lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

David L Lorenz | 8 Mar 17:56 2011
Picon

Re: Re: Histogram graph function does not display numbers on x axis correctly


Ming,
  I believe that in this case, the hist() function correctly labels the x-axis. You have continuous data, which have been put into bins. Those bins are characterized by the width of the bars in the histogram.
  If you had discrete data, such as integers, then you would want labels in the middle of the bars.
Dave


From: Dung Tran <dtran7 <at> student.gsu.edu>
To: Dung Tran <dtran7 <at> student.gsu.edu>, "s-news <at> lists.biostat.wustl.edu" <s-news <at> lists.biostat.wustl.edu>
Date: 03/08/2011 09:25 AM
Subject: [S] Re: Histogram graph function does not display numbers on x axis correctly
Sent by: s-news-owner <at> lists.biostat.wustl.edu




Good afternoon  all,


My name is Ming. I am a graduate student at Georgia State.

May i get your help?

I am trying to create a very simple histogram for my data but it seems  the numbers on the  x axis of the histogram do not line up correctly.

They should line up in the middle of the bar instead of showing up in the left corner.

If you have experienced the same problem, may you please give me some advice on how to fix it.

Thanks so much for all of your help.

Attached is the simple code  i used
=====================================================

test <- rnorm (20,0,1)
hist (test)--------------------------------------------------------------------
This message was distributed by s-news <at> lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request <at> lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


Stephen Kaluzny | 8 Mar 17:51 2011

Re: Re: Histogram graph function does not display numbers on x axis correctly

On Tue, Mar 08, 2011 at 03:21:59PM +0000, Dung Tran wrote:

> I am trying to create a very simple histogram for my data but it seems
> the numbers on the x axis of the histogram do not line up correctly.
> 
> They should line up in the middle of the bar instead of showing up in
> the left corner.

The numbers on the x-axis are labeling the axis, not the bars.

Consider a histogram with this data:

set.seed(4)  # so you get the same example data
test <- rnorm (20,0,1)
hist(test)

Note that there is not a number for the left corner of each bar,
only every other bar has a number below the left corner.

If you insist on having a number below the center of every bar
you can specify the x-axis yourself:

barCenter <- hist(test)  # hist returns the bar centers
hist(test, axes=FALSE)  # no axis on the histogram
axis(2)  # the default y-axis
axis(1, at=barCenter)  # the x-axis with values at barCenter

See the help file for axis for more information.

-Stephen
--------------------------------------------------------------------
This message was distributed by s-news <at> lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request <at> lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

William Dunlap | 8 Mar 18:28 2011

Re: Re: Histogram graph function does not display numbers on x axis correctly

Also, if you do have discrete data you can turn it into a factor
and then hist() will produce a bar for each level in the factor,
with each bar getting a level (as long as the labels don't overlap).
E.g.,
  > x <- rep(2^(0:4), c(1,2,3,5,8))
  > hist(x) # bins x into 8 bars, some of them empty
  > hist(factor(x, levels=1:16))  # 16 bars, some of them empty, all labelled
 

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com

 

From: s-news-owner <at> lists.biostat.wustl.edu [mailto:s-news-owner <at> lists.biostat.wustl.edu] On Behalf Of David L Lorenz
Sent: Tuesday, March 08, 2011 8:56 AM
To: Dung Tran
Cc: Dung Tran; s-news <at> lists.biostat.wustl.edu; s-news-owner <at> lists.biostat.wustl.edu
Subject: Re: [S] Re: Histogram graph function does not display numbers on x axis correctly


Ming,
  I believe that in this case, the hist() function correctly labels the x-axis. You have continuous data, which have been put into bins. Those bins are characterized by the width of the bars in the histogram.
  If you had discrete data, such as integers, then you would want labels in the middle of the bars.
Dave


From: Dung Tran <dtran7 <at> student.gsu.edu>
To: Dung Tran <dtran7 <at> student.gsu.edu>, "s-news <at> lists.biostat.wustl.edu" <s-news <at> lists.biostat.wustl.edu>
Date: 03/08/2011 09:25 AM
Subject: [S] Re: Histogram graph function does not display numbers on x axis correctly
Sent by: s-news-owner <at> lists.biostat.wustl.edu




Good afternoon  all,


My name is Ming. I am a graduate student at Georgia State.

May i get your help?

I am trying to create a very simple histogram for my data but it seems  the numbers on the  x axis of the histogram do not line up correctly.

They should line up in the middle of the bar instead of showing up in the left corner.

If you have experienced the same problem, may you please give me some advice on how to fix it.

Thanks so much for all of your help.

Attached is the simple code  i used
=====================================================

test <- rnorm (20,0,1)
hist (test)--------------------------------------------------------------------
This message was distributed by s-news <at> lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request <at> lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


Dung Tran | 8 Mar 18:34 2011
Picon

Re: Re: Histogram graph function does not display numbers on x axis correctly

Thank you so much Mr.Kaluzny for all of your help.
The number below the bar center works for me.

May i ask you a question relating to the possibility of display two normal curvres together using Splus. I
don't know if Splus have a function to do it.

For example, i have two normal curvres. 

curvre1 <- rnorm (100,10,1)  

curvre2 <- rnorm (100,11,1)

I would like to display two curvres together in one graph and i have search for splus function to do it.

If you happen to know one, may you please show me.

Thanks so much,
Minh 

  
________________________________________
From: Stephen Kaluzny [skaluzny <at> tibco.com]
Sent: Tuesday, March 08, 2011 8:51 AM
To: s-news <at> wubios.wustl.edu
Cc: Dung Tran
Subject: Re: [S] Re: Histogram graph function does not display numbers on x axis correctly

On Tue, Mar 08, 2011 at 03:21:59PM +0000, Dung Tran wrote:

> I am trying to create a very simple histogram for my data but it seems
> the numbers on the x axis of the histogram do not line up correctly.
>
> They should line up in the middle of the bar instead of showing up in
> the left corner.

The numbers on the x-axis are labeling the axis, not the bars.

Consider a histogram with this data:

set.seed(4)  # so you get the same example data
test <- rnorm (20,0,1)
hist(test)

Note that there is not a number for the left corner of each bar,
only every other bar has a number below the left corner.

If you insist on having a number below the center of every bar
you can specify the x-axis yourself:

barCenter <- hist(test)  # hist returns the bar centers
hist(test, axes=FALSE)  # no axis on the histogram
axis(2)  # the default y-axis
axis(1, at=barCenter)  # the x-axis with values at barCenter

See the help file for axis for more information.

-Stephen
--------------------------------------------------------------------
This message was distributed by s-news <at> lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request <at> lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

Dung Tran | 8 Mar 20:13 2011
Picon

Re: Is it possible to display two normal curvres togther in a graph in Splus?

Good afternoon all,

  My name is Minh. I am a student at Georgia State.

  I would like to seek your expertise? I am working on a project which requires me to display two normal cuvres
together in one graph; for example , i have

curvre1 <- rnorm (100,10,1)  

curvre2 <- rnorm (100,11,1)

I would like to display two curvres together in one graph and i have search for splus function to do it but i am
not successful.

I would like to post my question to the forum. If  you happen to know how to do it , may you please show me.

Thank you very  much,
Minh 

--------------------------------------------------------------------
This message was distributed by s-news <at> lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request <at> lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

Avi Pfeffer | 9 Mar 17:58 2011

Second call for papers - UAI 11

A reminder: the deadline is coming up on March 18th.

UAI 2011 Call for Papers

The 27th Conference on Uncertainty in Artificial Intelligence (UAI 2011) will be located in Barcelona, Spain, on July 14-17, 2011. Sessions will be held at the Campus Roger de Lluria of the Universitat Pompeu Fabra (UPF). The conference will happen just before the International Joint Conference on Artificial Intelligence (IJCAI).

UAI is the premier conference on issues relating to representation and management of uncertainty within the field of Artificial Intelligence. UAI is supported by the Association for Uncertainty in Artificial Intelligence (AUAI).

We encourage submissions that report on theoretical or methodological advances in modeling, inference, learning and decision making under uncertainty. Submissions reporting on novel and insightful applications of these techniques within intelligent systems are also strongly encouraged. Examples of such application areas include, but are not limited to, computational biology, computer vision, speech processing, computational linguistics, information retrieval, medical systems, multi-agent systems, robotics, and sensor networks.

IMPORTANT DATES

  • Friday, March 18 2011, midnight GMT: UAI full paper submission

  • Friday, April 29 2011: Reviews available.

  • Thursday, May 5 2011, midnight GMT: Author feedback due.

  • Wednesday, June 1 2011: Author notification.

  • Friday, June 17 2011: Camera ready due.

NOTE: midnight GMT = 7pm EST = 4pm PST

Paper Submission Details

UAI 2011 requires electronic submission of papers and abstracts, inserted in the confmaster system (http://uai.confmaster.net). Reviewing will be double-blind, so authors should take care not to reveal their identities in their submission.

A regular submitted paper should not be under review by any other conference at the time it is submitted to UAI 2011 nor at any time during the reviewing period of UAI 2011. At the time of submission, a regular paper should also not have already been accepted for publication in a journal. The standard UAI paper length is eight (8) pages, including all figures and bibliography. Authors may optionally purchase up to two (2) additional pages for a fee, the cost of which will be determined later (in 2010 it was $150US/page). We note that the confmaster paper submission site allows the optional submission of supplementary material up to length 5MBs, which may contain proofs, background material, and so on in support of the UAI2011 anonymous submission.

UAI has traditionally mostly attracted submissions from computer scientists, even though reasoning under uncertainty is an important topic in many other areas such as statistics, economics and philosophy. To accommodate the publishing traditions of these fields, authors may submit working papers that are under review in a journal, as NOT-FOR-PROCEEDINGS submissions. These submissions will be subject to review and considered for presentation at the conference but not for publication in the proceedings. These submissions need not conform to the conference paper format. Abstracts (max. 1 page) of accepted working papers will be included in the proceedings and must be coupled with a URL that points to the full paper and that will be reliable for at least two years. Open access is strongly preferred although the paper can be hosted by a publisher who takes copyright and limits access, as long as there is a link to the location.

Presentation, Proceedings and Awards

Accepted papers will be presented at the conference in either plenary or poster sessions. At least one of the paper's authors should be present at the conference to present the work. All accepted papers will be included in the Proceedings of the Twenty Seventh Conference on Uncertainty in Artificial Intelligence. The program committee will select papers for special distinction in two categories at UAI 2011: a "Best Paper" award, and a "Best Student Paper" award. The conference home page will contain instructions for certifying student status with regards to the latter award.

 

 

+  +  +  +  +  +  +  +  +   +  +  +  +  +  +  +  +  +

Avi Pfeffer, PhD

Principal Scientist

Decision Management Systems

Government Services

Charles River Analytics Inc.

617.491.3474 x513

www.cra.com

 

 
 
 
 

THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records.

 
 
 
Jan Ivanouw | 10 Mar 23:01 2011
Picon

Splus analogy to R function: optim

Hi,
 
Does anyone know if there is a Splus function that does the same as the R function optim?
Or some way  to implement the R optim function in Splus?
 
Best,
 
Jan Ivanouw PhD
University of Copenhagen
Denmark
Anthony Seeman | 10 Mar 23:20 2011

Kendall-Theil as fit?

I found some code to compute a Kendall-Theil slope estimate and want to add it to a scatter plot. Is there a way to make it appear like a regression fit instead of a line that extends from the edges of the plot? I would like to have the OLS appear as a dotted line and the KT a solid line but as it is the KT line is longer.

 

I am using S-plus 8 on Windows XP.

 

Anthony Seeman
Water Quality Technician
Iowa Soybean Association
www.iasoybeans.com
http://acwa-rrws.org/
(515) 251-8640 ext. 242
(515) 669-9152 (work cell)

 


Gmane