Re: [Rd] Axis line not appearing with axis(tick=FALSE) (PR#8998)

2006-06-18 Thread Duncan Murdoch
[EMAIL PROTECTED] wrote:
> Full_Name: Sean Pieper
> Version: 2.3.1
> OS: Windows
> Submission from: (NULL) (67.188.92.37)
>
>
> Hi, I am trying to create a qualitative figure for which I don't want tick 
> marks
> or numbers, but having some axes would be nice.
>
> If I do: 
>
> plot.new()
> axis(2,labels=FALSE,tick=FALSE,lty="solid",lwd=1)
>
> I expect this should give me a vertical line on the left edge of the plot, but
> nothing draws. When I run:
>
> axis(2,labels=FALSE,tick=TRUE,lty="solid",lwd=1)
>
> both the line and the ticks draw 
>
> If I type:
>
> axis(2,labels=TRUE,tick=FALSE,lty="solid",lwd=1)
>
> I get numbers, but still no axis line. 
>
> I also checked with axis(1,...) and saw the same behavior.

I don't think this is a bug, just the way it is designed.  Normally axis 
only draws the line between the extreme ticks, not for the
whole length of the axis.  If you have no tick, you have no line.

You might get what you want with box(), or by drawing the axes using 
abline(), e.g.

 abline(v=par("usr")[1])

for a vertical line at the lower limit of x values.  As ?par says, 
par("usr") is:

A vector of the form c(x1, x2, y1, y2) giving the extremes of the user 
coordinates of the plotting region. When a logarithmic scale is in use 
(i.e., par("xlog") is true, see below), then the x-limits will be 10 ^ 
par("usr")[1:2]. Similarly for the y-axis.

Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Axis line not appearing with axis(tick=FALSE) (PR#8998)

2006-06-18 Thread Sean Pieper
ah-- this isn't clear from the documentation :-).

Thanks for the work around!

-sean

On 6/18/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
> > Full_Name: Sean Pieper
> > Version: 2.3.1
> > OS: Windows
> > Submission from: (NULL) (67.188.92.37)
> >
> >
> > Hi, I am trying to create a qualitative figure for which I don't want
> tick marks
> > or numbers, but having some axes would be nice.
> >
> > If I do:
> >
> > plot.new()
> > axis(2,labels=FALSE,tick=FALSE,lty="solid",lwd=1)
> >
> > I expect this should give me a vertical line on the left edge of the
> plot, but
> > nothing draws. When I run:
> >
> > axis(2,labels=FALSE,tick=TRUE,lty="solid",lwd=1)
> >
> > both the line and the ticks draw
> >
> > If I type:
> >
> > axis(2,labels=TRUE,tick=FALSE,lty="solid",lwd=1)
> >
> > I get numbers, but still no axis line.
> >
> > I also checked with axis(1,...) and saw the same behavior.
>
> I don't think this is a bug, just the way it is designed.  Normally axis
> only draws the line between the extreme ticks, not for the
> whole length of the axis.  If you have no tick, you have no line.
>
> You might get what you want with box(), or by drawing the axes using
> abline(), e.g.
>
> abline(v=par("usr")[1])
>
> for a vertical line at the lower limit of x values.  As ?par says,
> par("usr") is:
>
> A vector of the form c(x1, x2, y1, y2) giving the extremes of the user
> coordinates of the plotting region. When a logarithmic scale is in use
> (i.e., par("xlog") is true, see below), then the x-limits will be 10 ^
> par("usr")[1:2]. Similarly for the y-axis.
>
> Duncan Murdoch
>

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] bug with boot.sw98 function (PR#8999)

2006-06-18 Thread Duncan Murdoch
[EMAIL PROTECTED] wrote:
> Full_Name: Nuno Monteiro
> Version: 2.3.1
> OS: Windows XP HE
> Submission from: (NULL) (84.9.38.207)
>
>
> I'm using the FEAR library to perform Data Envelopment analysis with a 36,000
> obs dataset.
>
> The function dea is working fine but then when I try to use the boot.sw98 to
> come up with some sensitivity analysis I get the following error:
>
> boot.sw98(XOBS=x,YOBS=y,NREP=100,DHAT=dhat,RTS=3,ORIENTATION=2)
> Error in 0:L : NA/NaN argument
> In addition: Warning message:
> longer object length
> is not a multiple of shorter object length in: kappam * Gcounts
>
> What does this mean? Is this because I have too many observations? What can I 
> do
> to fix it?
>
> Please let me know if you need further information.
>
> Thank you in advance for your cooperation.
>
>   

You need to write to the maintainer of the package you're using.  It's 
not a standard R package, so reporting this to R-bugs is not appropriate.

Duncan Murdoch
> Regards,
> Nuno
>
> PS here is a transcript of the script I'm using
>
> library(FEAR)
> abc <- read.csv("Jul_data.csv",header=TRUE)
> x=matrix(nrow=1,ncol=39182)
> x[1,]=abc$apr_repayment
> y=matrix(nrow=7,ncol=39182)
> y[1,]=abc$pcadv
> y[2,]=abc$until
> y[3,]=abc$cashback_rate
> y[4,]=abc$self_certify_ind_d
> y[5,]=abc$incentive_ind_d
> y[6,]=abc$features_1
> y[7,]=abc$discount
> dhat=dea(XOBS=x,YOBS=y,RTS=3,ORIENTATION=2)
> boot.sw98(XOBS=x,YOBS=y,NREP=100,DHAT=dhat,RTS=3,ORIENTATION=2)
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Axis line not appearing with axis(tick=FALSE) (PR#8998)

2006-06-18 Thread Duncan Murdoch
Sean Pieper wrote:
> ah-- this isn't clear from the documentation :-).

I see that.  I've fixed the docs in R-devel, and will do the same in 
R-patched if I have enough time before my flight...

Duncan
>
> Thanks for the work around!
>
> -sean
>
> On 6/18/06, *Duncan Murdoch* < [EMAIL PROTECTED] 
> > wrote:
>
> [EMAIL PROTECTED]  wrote:
> > Full_Name: Sean Pieper
> > Version: 2.3.1
> > OS: Windows
> > Submission from: (NULL) (67.188.92.37 )
> >
> >
> > Hi, I am trying to create a qualitative figure for which I don't
> want tick marks
> > or numbers, but having some axes would be nice.
> >
> > If I do:
> >
> > plot.new()
> > axis(2,labels=FALSE,tick=FALSE,lty="solid",lwd=1)
> >
> > I expect this should give me a vertical line on the left edge of
> the plot, but
> > nothing draws. When I run:
> >
> > axis(2,labels=FALSE,tick=TRUE,lty="solid",lwd=1)
> >
> > both the line and the ticks draw
> >
> > If I type:
> >
> > axis(2,labels=TRUE,tick=FALSE,lty="solid",lwd=1)
> >
> > I get numbers, but still no axis line.
> >
> > I also checked with axis(1,...) and saw the same behavior.
>
> I don't think this is a bug, just the way it is
> designed.  Normally axis
> only draws the line between the extreme ticks, not for the
> whole length of the axis.  If you have no tick, you have no line.
>
> You might get what you want with box(), or by drawing the axes using
> abline(), e.g.
>
> abline(v=par("usr")[1])
>
> for a vertical line at the lower limit of x values.  As ?par says,
> par("usr") is:
>
> A vector of the form c(x1, x2, y1, y2) giving the extremes of the user
> coordinates of the plotting region. When a logarithmic scale is in use
> (i.e., par("xlog") is true, see below), then the x-limits will be
> 10 ^
> par("usr")[1:2]. Similarly for the y-axis.
>
> Duncan Murdoch
>
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] R Wiki: how useful for developers?

2006-06-18 Thread Philippe Grosjean
Hello all R developers,

I just send the official annoucement of the R Wiki at 
http://wiki.r-project.org (was also officially annouced at useR!2006). I 
would like to insist here on the aspects of the Wiki that could be of 
particular interest for you, as R developer:

1) The 'R documentation' section is dedicated to hold the latest 
"wikified" version of all Rd files (base, recommended, as well as all 
packages on CRAN and Bioconductor). Users can append exemple, discuss 
points that are unclear for them, etc. at the end of these Wiki pages. 
So, looking from time to time to these page is a good way to get 
feedback from the users to improve your Rd files. (note that, currently 
only base packages are on the Wiki; Also, several bugs in the Rd -> Wiki 
conversion still need to be fixed, but that will be done as soon as 
possible and all other Rd files will be published then).

2) The 'R packages' section of the Wiki is an ideal place to allow 
developers *and* users of R packages to add useful material like further 
examples, tutorials, tips, etc. related to your packages. Although this 
section is still in development, here is how you can create a page for 
your own package and advertise it:

- After login to the R Wiki site, type this in the search box (top right 
of any R Wiki page):

packages:[cran|bioconductor|others]:[pckgname]

with: [cran|bioconductor|others] depending on where you package is 
located, and [pckgname] being the name of your package (note that the R 
Wiki uses only lowercase letters for page names, so that your package 
name will be automatically tranformed into lowercase in the URL of your 
page)

- An error message indicate that the page does not exist yet. Click on 
'Create this page' at the top left.

- Start editing your page and click 'Save'.

- Copy and paste the URL of your page in the URL section of your 
description file.

Best,

Philippe Grosjean
-- 
..<°}))><
  ) ) ) ) )
( ( ( ( (Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Mons, Belgium
( ( ( ( (web:   http://www.umh.ac.be/~econum
  ) ) ) ) )  http://www.sciviews.org
( ( ( ( (
..

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Mathlib help

2006-06-18 Thread Prof Brian Ripley
On Sat, 17 Jun 2006, Bill Szkotnicki wrote:

> Hello,
>
> I am trying to make use of the R standalone library in mu own c and fortran
> code. ( fedora core linux )
>
> Unfortunately I am unable to link and create an executable.
> See below.
> It is the example file in "src/nmath/standalone"

There is no such file in current R:
/users/ripley/R/svn/R-devel/src/nmath/standalone
gannet% ls
Makefile.in   Makefile.win* READMEsunif.c   test.c

and README contains (correct) information on how to use it.

> Does anyone see what I might be missing?
>
> % R CMD COMPILE tr.c
> gcc -I/usr/local/lib64/R/include -I/usr/local/lib64/R/include
> -I/usr/local/include   -fpic  -g -O2 -std=gnu99 -c tr.c -o tr.o
>
> % R CMD LINK tr.o
> libtool: link: unable to infer tagged configuration
> libtool: link: specify a tag with `--tag'

Where exactly did you see that recommended?  See R CMD LINK --help for how 
to use it (and not for this purpose).  I suspect you want

% gcc -o tr tr.o -L/path/to/libRmath -lRmath -lm

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel