Re: [R] running saved scripts

2007-06-27 Thread Knut Krueger
Jiong Zhang, PhD schrieb:
> Hi All,
>
> I have a rather naive question.  I need to run some simple calculations
> such as read.table, resid, and quantile on a data file.  How can I save
> these commands in a text file and ask R to run this text file?  Thanks.
>
>   
There is a very comfortable editor including run functions (run all, run 
marked, run until window end and run line by line) available:
http://www.sciviews.org/Tinn-R/
And you can use the R-Editor (in the Menu: File->  new script)
There you can run the marked code or line by line with STGR R

Knut

__
R-help@stat.math.ethz.ch 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.


[R] read.xls problem

2007-06-27 Thread Knut Krueger
Hi to all,
I have a strange problem
There was a Excel file with 5 sheets
I deleted sheet 2 and 4.
as all the times before I tried to read the sheets with
data1<- read.xls(excelfile_2,sheet=1, as.is = TRUE ,verbose=FALSE, 
perl="C:/perl/bin/perl.exe")
data2<- read.xls(excelfile_2,sheet=2, as.is = TRUE ,verbose=FALSE, 
perl="C:/perl/bin/perl.exe")
data3<- read.xls(excelfile_2,sheet=3, as.is = TRUE ,verbose=FALSE, 
perl="C:/perl/bin/perl.exe")

but only the folloing code reads the sheets well
data1<- read.xls(excelfile_2,sheet=1, as.is = TRUE ,verbose=FALSE, 
perl="C:/perl/bin/perl.exe")
data3<- read.xls(excelfile_2,sheet=3, as.is = TRUE ,verbose=FALSE, 
perl="C:/perl/bin/perl.exe")
data5<- read.xls(excelfile_2,sheet=5, as.is = TRUE ,verbose=FALSE, 
perl="C:/perl/bin/perl.exe")

Does anybody know whether this is normal?
 I never had this problem before. And if it is normal I wonder about how 
to find the sheet numbers

Regards Knut

__
R-help@stat.math.ethz.ch 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.


[R] Is Landau-H available

2007-06-27 Thread Knut Krueger
Does anybody knows whether Landau-H index is available in ?
I did not found anything about with r
Regards Knut

__
R-help@stat.math.ethz.ch 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.


Re: [R] Sorting dataframe by different columns

2007-06-08 Thread Knut Krueger
maybe this page could give you some hints:
http://www.ats.ucla.edu/STAT/r/faq/sort.htm
Regards Knut

__
R-help@stat.math.ethz.ch 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.


Re: [R] Barplots: Editing the frequency x-axis names

2007-06-08 Thread Knut Krueger
Sorry I forgot the ""  around the dates
x <- c(dates("01/31/03"),dates("06/30/07"))

But I think your problem is the plot area.
You must first define the plot area with type ="n" for no plotting, 
afterwards you could fill in the data.
I did this with times() but I am afraid the displayed dates/times will 
depend on your plot area and the settings with par()

did you read the instructions for plot and par already?

Regards Knut

have a look to ?plot and to ?par

__
R-help@stat.math.ethz.ch 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.


Re: [R] Barplots: Editing the frequency x-axis names -doouble post

2007-06-08 Thread Knut Krueger
Sorry for double posting - was wrong e-mail adress , thougt this one 
will run into Spam filter

__
R-help@stat.math.ethz.ch 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.


Re: [R] Barplots: Editing the frequency x-axis names

2007-06-08 Thread Knut Krueger
Tom.O schrieb:
> Hi
> I have a timeSeries object (X) with monthly returns. I want to display the
> returns with a barplot, which I can fix easily. But my problem is labaling
> the x-axis, if I use the positions from the timeseries It gets very messy. I
> have tried rotating and changing the font size but it doesn't do the trick.
> I think the optimal solution for my purpose is too only display every second
> or third date, pherhaps only use every 12 month. But how do I do that?
>
> Thanks Tom
>   
I think you could use:

library(chron):
f.e
x <- c(dates(02/27/92),dates(02/27/95))
y <- c(10,50)
plot(x, y)

Regards Knut

__
R-help@stat.math.ethz.ch 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.


Re: [R] order of values in vector

2007-03-20 Thread Knut Krueger
Tord Snäll schrieb:
> Dear all,
> I would like to get the order of the values in a vector. I have tried 
> rank(), order() and searched the archive, though without success.
maybe this page could give you some hints:
http://www.ats.ucla.edu/STAT/r/faq/sort.htm
Regards Knut

__
R-help@stat.math.ethz.ch 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.


Re: [R] Plot window - save as Postscript question

2006-12-28 Thread Knut Krueger
Uwe Ligges schrieb:
>   
> Yes: Use the postscript() device explicitly and define the width and 
> height in the function call.
>
>   
I tried it before but I think I did a mistake:
Does the width and height command not work with
If paper="letter" ?
The plot was cutted at the upper boarder of the "paper"

I tried it with paper="special" and it worked now
Best regards Knut

__
R-help@stat.math.ethz.ch 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.


[R] Plot window - save as Postscript question

2006-12-28 Thread Knut Krueger
R  2.4.0 for Windows
The following plot appears as a squared window (as all r-plots)
Not all subtitles are visible, but  all subtitle will appear, when  
changing the aspect ratio of the plot window with the mouse to a wide 
format.
But does not work when using the save as postscript menu item from the 
plot window.
is there any solution for that?

opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
mp <- barplot2(VADeaths) # default
mp <- barplot2(VADeaths) # default
mp <- barplot2(VADeaths) # default
mp <- barplot2(VADeaths) # default
par(opar)

Regards Knut

__
R-help@stat.math.ethz.ch 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.


Re: [R] axis and times() problem

2006-12-28 Thread Knut Krueger
Thank you for your answer
> Actually I think there may be a bug here since the axes do not intersect.
>   

Should I report this or did you report it already as a possible bug?

__
R-help@stat.math.ethz.ch 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.


[R] axis and times() problem

2006-12-27 Thread Knut Krueger
Dear R-Group,
the first example is working as expected, but I need the plot without 
the box,
normally no problem, but I am not able to get the x-axis formatted as 
times with the axis, command.
I tried a lot of things, nothing was working so I used the most easy 
axis command in the second example here 
 
# working
  library(chron) # for times()
  library(graphics)# for axis
par(cex=1.2,lwd=1)
  x <- c(times("12:15:00"),times("15:30:00"))
y <- c(1,5)
plot(x, y, type="n",adj=0, asp=0, xlab="", ylab="",font.axis=2,yaxt='n')

# axis() command problem:
par(cex=1.2,lwd=1)
  x <- c(times("12:15:00"),times("15:30:00"))
y <- c(1,5)
plot(x, y,axes=FALSE, type="n",adj=0, asp=0, xlab="", 
ylab="",font.axis=2,yaxt='n')
  axis(1)


Maybe anybody could help me to disable the box around the plot and get 
the x-axis formatted as times

Regards Knut

__
R-help@stat.math.ethz.ch 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.


Re: [R] Switch and integer

2006-12-11 Thread Knut Krueger
David Barron schrieb:
>
> If the value of EXPR is an integer between 1 and nargs()-1 then the
> corresponding element of ... is evaluated and the result returned.
>
Thank you, I wondered about the
> integer between 1 and nargs()-1
and the example from the help file for(i in c(-1:3,9))  print(switch(i,
1,2,3,4))
No see I  that the 1,2,3,4 is the output not the value, but it's not
very clear for me ho it works.
I will try to find it out ...
The switch for Integer is very different from C++ or Pascal .. maybe
this was the reason for the problem.

Regards Knut

__
R-help@stat.math.ethz.ch 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.


[R] Switch and integer

2006-12-11 Thread Knut Krueger
I searched the help list and the manual, but I do not find my mistake.
Switch is working with character , with integer, but not in the third 
example

Regards Knut


count1 <- 0
test 
=c("3","9","3","9","3","9","8","9","8","9","8","9","3","9","3","9","5","9","3","9","1","2","7","9","3","9","1","1","2","2","3","9","2","1","2","5","9","8","9","1","2")
count1 <- "0"
for (i in 1:length(test))
  switch (EXPR=test[i],
  "5" = print(test[i]),
  "6" = print(test[i]),
  "7" = print(test[i]),
  "8" = print(test[i]),
  "9" = print(test[i])
  )
  count1
# example from helpfile
for(i in c(-1:3,9))  print(switch(i, 1,2,3,4))

#  not working
test 
=c(3,9,3,9,3,9,8,9,8,9,8,9,3,9,3,9,5,9,3,9,1,2,7,9,3,9,1,1,2,2,3,9,2,1,2,5,9,8,9,1,2)
count1 <- 0
for (i in 1:length(test))
  switch (EXPR=test[i],
  4 = count1 <- count1 +1,
  5 = count1 <- count1 +1,
  6 = count1 <- count1 +1,
  7 = count1 <- count1 +1,
  8 = count1 <- count1 +1
  )
  count1

__
R-help@stat.math.ethz.ch 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.


[R] [OT] sorry for sending two mails ... and thank's for the answers

2006-12-09 Thread Knut Krueger
Does anybody know why this mail did not appear for more than 6 hours?
I thought that my URL might be at any blacklist, so I created a web.de 
account and resent the mail after a couple of hours.

Regards Knut

__
R-help@stat.math.ethz.ch 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.


[R] how to create data.frame with dynamic count of values

2006-12-08 Thread Knut Krueger
Hello R-Group

I found how to fill the data.frame ->
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70843.html

N1 <- rnorm(4)
N2 <- rnorm(4)
N3 <- rnorm(4)
N4 <- rnorm(4)
X1 <- LETTERS[1:4]
###
nams <- c(paste("N", 1:4, sep = ""), "X1")
dat <- data.frame(lapply(nams, get))
names(dat) <- nams
dat


But I need also to create a dynamic count of numeric vectors
items = 15
VarSize <-10

N1 <- rep(0,VarSize)
N2 <- rep(0,VarSize)
N3 <- rep(0,VarSize)
N4 <- rep(0,VarSize)
N5 <- rep(0,VarSize)
...
N15<- rep(0,VarSize)  # 15 items


Thank you in advance
Knut

__
R-help@stat.math.ethz.ch 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.


[R] how to create data.frame with dynamic count of values

2006-12-08 Thread Knut Krueger
Hello R-Group

I found how to fill the data.frame ->
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70843.html

N1 <- rnorm(4)
N2 <- rnorm(4)
N3 <- rnorm(4)
N4 <- rnorm(4)
X1 <- LETTERS[1:4]
###
nams <- c(paste("N", 1:4, sep = ""), "X1")
dat <- data.frame(lapply(nams, get))
names(dat) <- nams
dat


But I need also to create a dynamic count of numeric vectors
items = 15
VarSize <-10

N1 <- rep(0,VarSize)
N2 <- rep(0,VarSize)
N3 <- rep(0,VarSize)
N4 <- rep(0,VarSize)
N5 <- rep(0,VarSize)
...
N15<- rep(0,VarSize)  # 15 items


Thank you in advance
Knut

__
R-help@stat.math.ethz.ch 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.


Re: [R] (g)lm ordinal or scaled values?

2006-05-09 Thread Knut Krueger


Liaw, Andy schrieb:

>There are good online materials that discuss these basic linear models in R
>(e.g., http://www.stat.lsa.umich.edu/~faraway/book/), and you would be
>well-served to peruse them instead of bumping your head on the wall over
>these confusions.
>  
>
:-) will read them
thx .. I am trying to reproduce the SPSS results of SPSS in  R now for a 
couple of months, because I do not trust in click and view results from 
SPSS.
All former results did match perfect. But now there was a very big 
"bump" , because the results don't mach  and I recogniced that I was 
right to so.

Regards Knut

>  
>

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] (g)lm ordinal or scaled values?

2006-05-09 Thread Knut Krueger


Liaw, Andy schrieb:

>Ordinal variables should be stored as ordered factors in R.  See ?ordered.
>
thnk`s for your reply. I tried to store as ordered factors
var <- as.ordered(var2)
but if I am calling the lm(dependent~var) I get a long list of values.
If I call
var <- as.numeric(var2)
lm(dependent~var)

then I get:

Residuals:
 Min   1Q   Median   3Q  Max
-0.93563  0.01378  0.16272  0.25546  0.57862

Coefficients:
Estimate Std. Error t value Pr(>|t|)   
(Intercept)  1.795130.02787  64.412  < 2e-16 ***
mean-0.281020.05993  -4.689 4.66e-06 ***

the SPSS call and Result  is:

SPSS (13)
Analyse
General Linear Model
Univariate
Dependent Variable -> Dependent
Fixed Factors   -> var2

OK
   



Tests of Between-Subjects Effects
Dependent Variable: dependent
 | --- | - | --- | - | 
 |  |
 | Source | Type III Sum of Squares | df  | Mean Square | F 
 | Sig. |
 | --- | - | --- | - | 
 |  |
 | Corrected Model | 11,269(a)   | 41  | ,275   
  | 1,668| ,012 |
 | --- | - | --- | - | 
 |  |
 | Intercept   | 361,340 | 1   | 361,340 | 
2193,088 | ,000 |
 | --- | --- | --- | --- | 
 |  |
 | var2| 11,269  | 41  | ,275| 
1,668| ,012 |
 | --- | --- | --- | --- | 
 |  |
 | Error   | 31,964  | 194 | ,165
|  |  |
 | --- | --- | --- | --- | 
 |  |
 | Total   | 773,000 | 236 | 
|  |  |
 | --- | --- | --- | --- | 
 |  |
 | Corrected Total | 43,233  | 235 | 
|  |  |
 | --- | --- | --- | --- | 
 |  |
a R Squared = ,261 (Adjusted R Squared = ,104)


Maybe anybody is able to show me the difference between SPSS and R calls 
because the P value ic complete different
The url for the Data (if anybody would like to try)

http://biostatistic.de/temp/testr.csv

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] (g)lm ordinal or scaled values?

2006-05-08 Thread Knut Krueger
There is a difference in the p- value from   0.000 and 0.012 when I am 
using SPSS.
0.000 when I am using the independent variable as scaled 0.012 if I am 
using the variable as  ordinal.

The independent variable is ordinal but it seems that R is using the 
variable as an scaled, because the P- Value is computed with 4.66e-06


so I am not sure which description I am misunderstanding:
SPSS;:
Covariates. Scale predictors  
should be selected as covariates 
 in the model. Within 
combinations of factor levels (or cells 
), values of covariates are 
assumed to be linearly correlated with values of the dependent variables.
(A variable can be treated as scale when its values represent ordered 
categories with a meaningful metric, so that distance comparisons 
between values are appropriate. Examples of scale variables include age 
in years and income in thousands of dollars.)

Factors. Categorical  
predictors should be selected as factors 
 in the model. Each level 
 of a factor can have a 
different linear effect on the value of the dependent variable.(A 
variable with a discrete number of values; an ordinal or nominal 
variable. Categorical variables are often used as grouping variables or 
factors.)

The data : http://biostatistic.de/temp/testr.csv

lm.data<-lm( dependent ~ var2,family = gaussian)

I don't know whether anybody could explain me the difference between 
SPSS and R results but if there are different results then one of them 
is wrong :-(
And I do not know which of them.
I hope I explained the problem understandable

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] factor to real - best way to convert

2006-05-03 Thread Knut Krueger
I have got  factor from read.xls:
 > is(factor_value)
[1] "factor"   "oldClass"


[288] -0.32   0.180.180.18-0.32   0.180.68  
[295] 0.680.18  
43 Levels: -0.05 -0.13 -0.15 -0.18 -0.20 -0.26 ... 1.33

If I am using the funciton as.real(factor_value)

I get

[271] 17 17  8 22  8  8 17 17 17 17 17 17 17 17 23  7 35  7
[289] 23 23 23  7 23 35 35 23

So I used as.real(as.matrix(factor_value))
The result is as expected:
[271]NANA -0.35  0.15 -0.35 -0.35NANANA
[280]NANANANANA  0.18 -0.32  0.68 -0.32
[289]  0.18  0.18  0.18 -0.32  0.18  0.68  0.68  0.18

Ok I found the way to convert with try and error, but I do not understand the 
way
-
and I found the hint in the fullref_manual:

x<- as.numeric(levels(factor_value))[factor_value])

Ok much better, but I would not be able to find the way from the 
?as.numeric help page.

Both versions are complete struggled in my mind.

maybe anybody is albe to write some hints for me.



with regards
Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Traffic on R-Help Mailing List

2006-03-17 Thread Knut Krueger
I do not know how many user are not able to receive the messages.
It seems that only messages from the list server are not delivered to 
the mailserver.
I am able to receive private mails and I talked with the sysadmin of the 
mailserver. He told me that he is not able to found any new mail from 
stat.math.ethz.ch, neither in the spamfilter nor in the log files.

I will read with the web interface your answers - if there is any solution.
One question:
Is it a possibility that my domain is blocked from sending e-mails 
because the e-mails of the last 2 weeks were bounced back?

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Traffic on R-Help Mailing List

2006-03-17 Thread Knut Krueger
No seems that there is an other problem with the spam filter.
Another guy  told me that they have the same problem. Some of the mails 
will delivered, most of the mails not

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Traffic on R-Help Mailing List

2006-03-17 Thread Knut Krueger
Problem solved,
it was a home made problem.
My mailbox was flooded with spam. The mailbox was open for all addresses 
coming to the URL [EMAIL PROTECTED]
There were no problem the last year but now the spammer found the open 
mail account.
We changed to defined addresses and mistyped the r-help e-mail address.

Thanks a lot

Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Traffic on R-Help Mailing List

2006-03-17 Thread Knut Krueger
I am amazed that the traffic decreased the last days. I am afraid that 
there is any problem with the spamfilter of my provider.
There are not messages from march 04rd until march 15th, Two messages 
from march 16 and nothing else since march 03rd

Please answer also with PM to the mail address. I hope I will solve the 
problem.

Thank you
Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Bioconductor package on linux machine

2006-03-16 Thread Knut Krueger
Hi together,
we received a question about the bioconductor package,
maybe anybody could help the guy and I will deliver the message over our 
forum to him.
If this way is allowed ...
Regards Knut

Here the question:
Hello,

I have installed R on a linux machine. I have then installed the 
biocLite.R package from bioconductor.
I wanted to install a few other packages - hgu133plus2cdf, rma .

I downloaded the source files and installed in the directory 
/usr/lib64/R/library

but when i try using those files, they show as not installed.
Anybody encounter this problem before OR is there something else i am 
doing wrong?

Following is the sequence of stpes i used first:
1) library(affy)

2) pcpc <- 
ReadAffy(sampleNames=c("107762","110662","110682","110792","110802","111301","111611","111781","111801","154272","160881"))
 


3) pc <- rma(pcpc)

Error in library("hgu133plus2cdf", lib.loc = NULL, character.only = TRUE) :
'hgu133plus2cdf' is not a valid package -- installed < 2.0.0?


I tried all this when logged in as root.


Any help will be appreciated.

thank you all..

sincerely
Kiran
Univ of Chicago

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] showing the integrated number by point size

2006-02-18 Thread Knut Krueger


Marc Schwartz (via MN) schrieb:

>On Fri, 2006-02-17 at 17:33 +0100, Knut Krueger wrote:
>  
>
>>Is there any function to show the points like this example of SPSS?
>>
>>http://biostatistic.de/temp/reg.jpg
>>
>>The point size should represent the number of data at this point.
>>
>>with regards
>>Knut Krueger
>>
>>
>
>There are a couple of functions in CRAN packages I believe that will do
>bubble plots.
>
To know the name of the function is always the problem before i am albe 
to seachr for :-(

>
>You might want to do:
>
>  RSiteSearch("Bubble Plot")
>
found the solution , thx

>
>which should help.
>
>A better option from a visualization perspective would be 
>
>  ?sunflowerplot
>  
>
Maybe, but I was told to search for bubbles. I will suggest the sunflowerplots.


Thank you very much
Knut Krueger

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] showing the integrated number by point size

2006-02-17 Thread Knut Krueger
Is there any function to show the points like this example of SPSS?

http://biostatistic.de/temp/reg.jpg

The point size should represent the number of data at this point.

with regards
Knut Krueger

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] some EPS rotated in journal preview

2006-01-20 Thread Knut Krueger


Prof. Brian Ripley schrieb:

> The problem is a well-known one in viewers looking at whole pages,
> especially PS -> PDF converters.  R figures are particularly 
> vulnerable as they have text running both horizontally and vertically 
> (with normal axes).
>
> Please do follow exactly the advice on the postscript help page.
>
>  The postscript produced for a single R plot is EPS (_Encapsulated
>  PostScript_) compatible, and can be included into other documents,
>  e.g., into LaTeX, using '\includegraphics{}'.  For use
>  in this way you will probably want to set 'horizontal = FALSE,
>  onefile = FALSE, paper = "special"'.
>
> If you have done that, suggest to your publisher that they turn auto 
> rotation off. 



There are the reproducible codes (from the help file). The first one 
with the long text is rotated the second is not rotated.
Seems that they rotate the page, if the text of the y-axes is longer 
than the text of the x-axes.
Are you able to see any other reason for the rotation.
I will contact the journal again, if there is no other reason especially 
of the R-code.

Regards
Knut Krueger.

postscript("c:/r/test/regline2.eps",horizontal = FALSE,onefile=FALSE, 
paper = "special" ,pointsize=20,
height=8,width=8,family = "Helvetica", font = "Helvetica")
 data(Davis)
 attach(Davis)
 mod.M<-lm(repwt~weight, subset=sex=="M")
 mod.F<-lm(repwt~weight, subset=sex=="F")
 plot(weight, repwt, pch=c(1,2)[sex],ylab="     
",xlab=" ")

 reg.line(mod.M)
 reg.line(mod.F, lty=2)

dev.off()

postscript("c:/r/test/regline3.eps",horizontal = FALSE,onefile=FALSE, 
paper = "special" ,pointsize=20,
height=8,width=8,family = "Helvetica", font = "Helvetica")
 data(Davis)
 attach(Davis)
 mod.M<-lm(repwt~weight, subset=sex=="M")
 mod.F<-lm(repwt~weight, subset=sex=="F")
 plot(weight, repwt, pch=c(1,2)[sex])

 reg.line(mod.M)
 reg.line(mod.F, lty=2)

dev.off()

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] some EPS rotated in journal preview

2006-01-19 Thread Knut Krueger


Knut Krueger schrieb:

>I am trying to send a manuscript to a journal.
>One of the figures build by R is in the right orientation and 4 are rotated 
>clockwise 90 deg in the preview.
>
>  
>
So I realized that they rotated the Paper not the figure. I did not 
realize it because I did not set the Arcrobat reader to a full size view. 
So I saw only the rotaded figure not the hole page.

maybe this is a better hint.

And the hint from the journal:

Please be advised that your eps figure file could have rotated in the built
PDF due to its size which is larger than the paper.

but I think that could not be the problem, because the figure is in the right 
rotation at the page.



Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] some EPS rotated in journal preview

2006-01-18 Thread Knut Krueger


Marc Schwartz (via MN) schrieb:

>
>Unfortunately, it may have precluded my being able to replicate exactly
>what you are seeing, despite being intimately familiar with one of the
>functions (barplot2  ;-) that you are using.
>
>I did create some data that would generally fit what you are doing in
>both cases, however, probably because I am on Linux and you are on
>Windows, where both device and GS differences may be problematic, I
>could not get the second to be rotated relative to the page.
>  
>
I think I described the problem not clearly or misunderstood your text.
There was no Figure rotated on my system - only in the PDF file from the 
jurnal.

>If you want, e-mail me (offlist) the rotated EPS file that is created in
>the second case and I can use that to try to replicate the problem as
>well as review the EPS code to see if something sticks out.
>
>
>Under Linuxen, one can set:
>
>  GS_OPTIONS="-dAutoRotatePages=/None"
>  export GS_OPTIONS ...
>

I will try to findout this on windows system, but maybe I need some time.
Fist I must send the paper out to the journal. I will attach both Tiff 
for the reviewers and eps for printing
.

>One other quick comment, which is relative to the readability of your
>code.  Strategically placed spaces (" ") and line breaks would help
>tremendously. Especially since most e-mail clients will create line
>breaks at 72 chars (or similar), which can make the flow of the code
>difficult to review.
>

sure  I only used copy and paste from the sriptfile and did noth thought 
about the autowrap fo the e-mailclient.

thanks very much Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] some EPS rotated in journal preview

2006-01-18 Thread Knut Krueger


Marc Schwartz schrieb:

>On Wed, 2006-01-18 at 13:04 +0100, Knut Krueger wrote:
>  
>
>One of the first things to do is to use 'onefile = FALSE', 'horizontal =
>FALSE' and paper = "special"'.
>  
>
I am afraid the problem is on the journals side, because the "wrong" 
postscript line (with "letter" )is working
and I changed the postscript options between both examples no change in 
the behaviour of the pdf creator of the journal.

>This is in the Details section of ?postscript, which provides guidance
>on the creation of EPS files for inclusion in publications.
>
>I would try that to see if that provides a more consistent formatting of
>the plots.
>  
>

>You don't indicate what you are using to create the manuscript itself
>(ie. Word, LaTeX,  or ?) to help us in considering other possibilities
>(such as auto rotation).
>  
>
The journal collects the figures once by once after the manuscript in 
the original file format.
to solve the problem I could change it to tiff and submit it, but the 
tiff files are look ing not as good as eps files.

>If the above does not help, please provide a reproducible example of the
>plot code and what you are using for the manuscript.
>
for your information:
the same problem occurs if I plot the data to the graphic device and use 
the right button -> create postscript file
One is not rotated the others are rotated.

Hope the code helps without data:

colored.barlabels  
<-function(x.barplot,x.barcolors,x.xrowlist,cexaxis=0.7,x.thick=F)
{
countmax<-length(x.xrowlist)
if (countmax > 0)
{
x.labels<-c(1:countmax)
for (count in 1:countmax)
{ for(count2 in 1:countmax)x.labels[count2]<-""
x.labels[count] <- x.xrowlist[count]
axis(1, at=x.barplot, tick=x.thick, labels=x.labels, 
col.axis=x.barcolors[count], cex.axis=cexaxis)
   
}
}#end if  (countmax > 0)
else "Message from colored.barlabel: Nothing to do"

}

postscript("c:/temp//fig04.ps",bg="transparent",onefile = TRUE 
,pointsize=20,paper = "letter",height=8,width=8,horizontal=FALSE,family 
= "Helvetica", font = "Helvetica")
barcolors <-  
c(boxcolor1_3,boxcolor1_3,boxcolor1_3,boxcolor4,boxcolor5,boxcolor6,boxcolor7,boxcolor8,boxcolor9,boxcolor10)
xrow <-c(mean1,mean2,mean8,mean71,mean72,mean78,mean79,mean85,mean86,mean92)

sdrow<-c(sd1,sd2,sd8,sd71,sd72,sd78,sd79,sd85,sd86,sd92)
ci.l<-xrow-sdrow/2
ci.h<-xrow+sdrow/2

xrowlist <- c("Day 1","Day 2","Day 3","Day 4","Day 5","Day 6","Day 
7","Day 8","Day 9","Day 10")
t.barplot<-barplot2(xrow,col = 
barcolors,cex.lab=1.2,plot.ci=TRUE,ci.l=ci.l,ci.u=ci.h,ylab="mean time 
till following in sec.")
barcolors <-  
c("black","black","black","black","black","black","black","black","black","black",)
colored.barlabels(t.barplot,barcolors,xrowlist,0.7,F)
dev.off()

this is the not rotated figure
ant the follwoing is rotated
outl.text <-function(boxdata,input = FALSE)
{
countmax<-length(boxdata$out)
if (countmax > 0)
{
for (count in 1:countmax)
{ outl.name <-boxdata$out[count]
if (input==TRUE) outl.name <- readline(paste("text for value 
boxplot Nr:",toString(boxdata$group[count])," - value: 
",toString(boxdata$out[count]),": "))
text(boxdata$group[count], 
boxdata$out[count],pos=4,cex=0.8,outl.name)
}
}#end if  (countmax > 0)
else "Message from outl.text: no outlier"

}

postscript("c:/r/anschluss/plots/fig02.ps",height=8,width=8,bg="transparent",pointsize=20,horizontal
 
= FALSE,onefile = FALSE, paper = "special",family = "Helvetica", font = 
"Helvetica")

day1<-Day_1
day2<-Day_2
day3<-Day_8
boxplot.names <-c("day 1","day 2","day 3") # Vektor für namen erzeugen
 
boxdata <- boxplot(day1,day2,day3,
col = boxcolor,names=boxplot.names,ylab="time till following in 
sec.",cex.lab=size.x.lab,xlab="",cex.lab=size.y.lab
)
outl.text(boxdata,input=FALSE)

dev.off()





Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] some EPS rotated in journal preview

2006-01-18 Thread Knut Krueger


Prof Brian Ripley schrieb:

> The problem is a well-known one in viewers looking at whole pages,
> especially PS -> PDF converters.  R figures are particularly 
> vulnerable as they have text running both horizontally and vertically 
> (with normal axes).
>
> Please do follow exactly the advice on the postscript help page.
>
>  The postscript produced for a single R plot is EPS (_Encapsulated
>  PostScript_) compatible, and can be included into other documents,
>  e.g., into LaTeX, using '\includegraphics{}'.  For use
>  in this way you will probably want to set 'horizontal = FALSE,
>  onefile = FALSE, paper = "special"'.
>
>>
>> postscript("c:/temp/fig04.eps",bg="transparent",onefile = TRUE 
>> ,pointsize=20,paper = 
>> "letter",height=8,width=8,horizontal=FALSE,family = "Helvetica", font 
>> = "Helvetica")
>
postscript("c:/temp/fig04.eps",bg="transparent",height=8,width=8,bg="transparent",pointsize=20,horizontal
 
= FALSE,onefile = FALSE, paper = "special",family = "Helvetica", font = 
"Helvetica")

There is a error from  boxplot without ,height=8,width=8
error in plot.new() : Grafikränder zu groß ( margins to big)

but I am afraid that they have autorotation on. I will aks the journal 
to switch it off.

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] some EPS rotated in journal preview

2006-01-18 Thread Knut Krueger


Uwe Ligges schrieb:

>
> Always hard to tell what an "unknown" system is doing. We do not know 
> of any rotation problems with R graphics, hence please ask the poeple 
> running that "unknown system".

I tried to ask, they converted the files to rotated tiff (as a free 
service) but used old files from the first submission, and they did not 
give me any answer why one file is not  rotated the other 3 are rotated ...

Sorry that I could not give you any more hints, but I will ask them to 
switch off auto rotation.

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] some EPS rotated in journal preview

2006-01-18 Thread Knut Krueger

I am trying to send a manuscript to a journal.
One of the figures build by R is in the right orientation and 4 are rotated 
clockwise 90 deg in the preview.

I used the right click save to PS option and I used the command line

postscript("c:/temp/fig04.eps",bg="transparent",onefile = TRUE  
,pointsize=20,paper = "letter",height=8,width=8,horizontal=FALSE,family = 
"Helvetica", font = "Helvetica")

I treed Horizontal=TRUE Ghostsript show the rotated image but not the preview 
from the journal. :-(


Is there anything to change that the - unknown system - of the journal will be 
forced to display the image in the right direction?

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] new comer's question

2006-01-16 Thread Knut Krueger


Chang Shen schrieb:

>
>I have a csv file looks like this: (between two  lines)
>===
>
>
>
>
>First I load it by read.table call:
>
>myArray <- read.table("c:/mydata.csv",sep=",");
>
>  
>
did you try read.csv("c:/mydata.csv",sep=",")

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] rsq.rpart is there any R-Square value like in SPSS?

2006-01-16 Thread Knut Krueger


Chuck Cleland schrieb:

> I guess you want the Multiple R-Squared for a linear model.  You can 
> get that by using summary() on a linear model.  For example:
>
> ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
> trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
> group <- gl(2,10,20, labels=c("Ctl","Trt"))
> weight <- c(ctl, trt)
> lm.D9 <- lm(weight ~ group)
> summary(lm.D9)
> summary(lm.D9)$r.squared
> summary(lm.D9)$adj.r.squared

sure .. I was complete on the wrong way because I used the search
function :-(
used the summary more than one time 


Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] rsq.rpart is there any R-Square value like in SPSS?

2006-01-16 Thread Knut Krueger

I found in the fullrefman only the function rsq.rpart with the search tearm 
r-square or rsquare.

SPSS returnes the R Square an i am not albe to found the value in R

Maybe there is another name for it



Model Summary(d)

ModelR   R SquareAdjusted R SquareStd. Error of the Estimate

1   ,768(a)   ,589 ,584171,032



Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] problem solved

2006-01-16 Thread Knut Krueger
 >library(rpart)

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] rsq.rpart not found ...

2006-01-16 Thread Knut Krueger
Hi to all
I tried  help.search("rsq") and found


Help files with alias or concept or title matching 'rsq.rpart' using
regular expression matching:

rsq.rpart(rpart)Plots the Approximate R-Square for the
Different Splits



then I tried to use the function but I got the error object not found
must I load any package before? there is nothing in the helpfile (R 2.2.0)

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] wilcox.test warnig message p-value where are the zeros in the data?

2006-01-12 Thread Knut Krueger
does anybody know why there are the two warnings in the example above?

Regards Knut

 > day_4
 [1] 540   1   1   1   1   1   1 300 720 480
 > day_1
 [1]  438  3431  4751  562  500  435 1045  890

> is.vector (day_1)
[1] TRUE
> is.vector (day_4)

[1] TRUE

 > wilcox.test(day_4 
,day_1,paired=TRUE,alternative="two.sided",exact=TRUE,conf.int=TRUE)

Wilcoxon signed rank test with continuity correction

data:  day_4 and day_1
V = 1, p-value = 0.02086
alternative hypothesis: true mu is not equal to 0
95 percent confidence interval:
 -486.5 -120.0
sample estimates:
(pseudo)median
  -348

Warning messages:
1: cannot compute exact p-value with zeroes in: 
wilcox.test.default(day_4, day_1, paired = TRUE, alternative = 
"two.sided", 
2: cannot compute exact confidence interval with zeroes in: 
wilcox.test.default(day_4, day_1, paired = TRUE, alternative = 
"two.sided",

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] high resolution images for publication

2005-10-14 Thread Knut Krueger


Chris Buddenhagen schrieb:

>Dear all
>
> 
>
>I am using R to produce ordinations library(vegan) and the plot function
>produced looks great on the screen but when I send it to jpg or pdf or eps
>the resolution is not so good. Can you tell me how to get high resolution
>images out of R for publication?
>

I tried to fix that problem weeks ago.
The journal wants Tiff files in high resolution or EPS files - no PS files.
The best solution was to use the postscript files from the R graphic
device (right mouse save as postscript)
After this I converted the files with Ghostscript and GSViev in a
suitable file format.
and after the submission was ready I tried to submit the postscript file
... It worked better than all the other.

Maybe you should also try to use the PS-files.In our case we were ale to
look to a PDF file after sending the file whether the submission is ok
or not.
And if it was ok the submission was sent to the journal.

Therefore I tried all graphic formats before the regular submission.

Regards Knut

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Wrong signature

2005-09-27 Thread Knut Krueger
I've got a comlaint about the signature in the last post.
I answered form another computer and there is the automatic signature of 
our second business.
On this place is also a part  of the equine resarch program in progress.
I did not realize that there was the siganture below.
Sorry for that.

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] hist(x, ...) with normal distribution curve

2005-09-26 Thread Knut Krueger


Romain Francois schrieb:

>Do you want that :
>
>h<-hist(x,breaks=10,freq = TRUE) 
>xfit<-seq(min(x),max(x),length=40) 
>yfit<-dnorm(xfit,mean=mean(x),sd=sd(x)) 
>
>lines(xfit,yfit * 150 * (h$breaks[2]-h$breaks[1]))
>
>
>  
>
Right thats what I want ... but does it make sense to fit the line with 
a try and error multipier (150)

Is there no way to compute the frequency and the distribution line with 
standardised function?
I used SPSS with the data from x<-5+rnorm(150)
Hit the graph-histogramm menue choosed: display normal curve and got the 
result:
http://biostatistic.de/temp/spss1.jpg - just as easy as possible

So, they have any standardised function.
maybe it does not make sence, but i am not able to see why there is such 
a esay to use function in SPSS but not in R
Maybe anybody is able to explane whiy


and my intention:
As a previous computer scientist I am trying to find a way to eleminate 
SPSS an use R
Sure there is a big lack of my statistic knowledge - but the often the 
SPSS user have similar lack  but it is easy to click and view instead to 
try the similar steps in R
But if I am not able to find the steps in R for the common .. 
"SPSS-clicks" , I will never be able to suggest R in the institute to 
the people with mor statistical knowledge but no knowledge about 
computer science ... and command line interpreter

Regards Knut




-- 
Viele Grüße
Knut Krüger
-- 

  Reitpark Einthal

Leitung: 1 Tierarzt, 1 Berufsreiter 
 Homepage http://www.einthal.de

Eine fachgerechte Betreuung rund um die Uhr.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] hist(x, ...) with normal distribution curve

2005-09-26 Thread Knut Krueger


Petr Pikal schrieb:

>Hi
>
>answered hundered times.
>
>  
>
>>Dear R people: 
>>
>>I would like to superimpose a normal curve on a histogram. 
>>
>>
>x<-rnorm(150) 
>h<-hist(x,breaks=15) 
>xhist<-c(min(h$breaks),h$breaks) 
>yhist<-c(0,h$density,0) 
>xfit<-seq(min(x),max(x),length=40) 
>yfit<-dnorm(xfit,mean=mean(x),sd=sd(x)) 
>plot(xhist,yhist,type="s",ylim=c(0,max(yhist,yfit))) 
>lines(xfit,yfit) 
>
>
>Bill 
>
>above is e.g. Bill Simpson's answer from 2001. Found from R-site 
>search  ***histogram density normal***.
>  
>
Ok If I merge both of your answers I get the graph like in SPSS but the ylab is 
density instead frequency:
and I do not have the clicks in SPSS to redo the same graph :-(
I hav only the Data file and the SPSS plot.


x<-5+rnorm(150) 

h<-hist(x,breaks=10,freq = TRUE) 
#I need this histogramm  with...

xfit<-seq(min(x),max(x),length=40) 
yfit<-dnorm(xfit,mean=mean(x),sd=sd(x)) 

lines(xfit,yfit) 



h<-hist(x,breaks=10,prob=T) 

xfit<-seq(min(x),max(x),length=40) 
yfit<-dnorm(xfit,mean=mean(x),sd=sd(x)) 
# ... this line 
lines(xfit,yfit)


Thanks Knut


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] hist(x, ...) with normal distribution curve

2005-09-26 Thread Knut Krueger
.
I am looking for a histogram or box plot with the adding  normal 
distribution  curve
I think that must be possible, but I am not able to find out how to do.



Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] png scaling problem - solved :-)

2005-09-02 Thread Knut Krueger


Gabor Grothendieck schrieb:

>I can't reproduce this problem.  It works fine for me.  
>Some possibilities are:
>
>1. check which version of fig2dev you are using.  If you
>are on Windows I am using the fig2dev that comes in
>winfgi142.zip by Andreas Schmidt found at:
>
>   http://user.cs.tu-berlin.de/~huluvu/WinFIG.htm
>
>Here is the version info I get:
>
>C:\bin>fig2dev -h | findstr Windows
>Windows version 2 (02/08/2004) by Andreas Schmidt
>

I have

Windows version 2.1 (11/08/2004) by Andreas Schmidt

>
>2. Also, it seems from your output that fig2dev uses ghostscript.  
>I am using ghostscript 8.13.  Check what version you are
>using.
>
>  
>
8.51

but the most easy solution was the link to winfig -
Now I need  three systems to convert the files ?!?
ghostscript
fig2dev
and winfig

but it works fine :-)

I will write down this solution in our forum ( If the paper is 
submitted) and will post you the link.
If anybody else will need the same you could post only the link ;-)


thx Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] png scaling problem

2005-09-02 Thread Knut Krueger
thx I will try it ...

think I will be newbie in R for the next 10 jears ...

And I don't know why wh choosed the only journal which don't want pdf 
files :-(

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] png scaling problem

2005-09-02 Thread Knut Krueger


Knut Krueger schrieb:

>Ok there is a second description for the file format :-(
>http://authors.elsevier.com/ArtworkInstructions.html?dc=AI2
>there are pdf formats welcome but with defined conditions:
>  
>

>Maybe anybody could give me a hint to get the files in the recommendet 
>format.
>I will ask them immediately which whether the pdf is allowed or not, 
>becaus they have two different instruction sites :-(
>  
>
This one is genarally for elsvier journals, but if there is a special
description in the journal page, authors must use this ...
means:

EPS: Vector drawings. Embed the font or save the text as "graphics".
TIFF: Colour or greyscale photographs (halftones): always use a minimum
of 300 dpi.
TIFF: Bitmapped line drawings: use a minimum of 1000 dpi.
TIFF: Combinations bitmapped line/half-tone (colour or greyscale): a
minimum of 500 dpi is required.



with regards
Knut Krueger




-- 
with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] png scaling problem

2005-09-02 Thread Knut Krueger
but back to the last problem,
what could be wrong that the ylab is not displayed as expected?

with regards
Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] png scaling problem

2005-09-02 Thread Knut Krueger
   

Gabor Grothendieck schrieb:

>If you have not already tried it try creating a fig file:
>
>xfig("myfile.fig")
>plot(1:10)
>dev.off()
>
>and then using the fig2dev utility (find it via google) to convert it to a 
>tiff:
>
>fig2dev -L tiff myfile.fig > myfile.tiff
>
>  
>
Error::  fig2def: broken pipe 
command was gs -q -dSAFER -sDEVICE=tiff24nc -r80 -g3830x506 
-sOutputFile=44.tif

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] png scaling problem

2005-09-01 Thread Knut Krueger



>Probably a better first question is, why are you using a bitmapped
>graphics format if you need the image to be re-scaled? 
>
I need a 1000 dpi tif file in a size of appr. 10 to 10 cm for applied 
animal behaviour science:
http://authors.elsevier.com/GuideForAuthors.html?PubID=503301&dc=GFA

images to one of the following formats (Note the resolution requirements 
for line drawings, halftones, and
line/halftone combinations given below.):
EPS: Vector drawings. Embed the font or save the text as "graphics".
TIFF: Colour or greyscale photographs (halftones): always use a minimum 
of 300 dpi.
TIFF: Bitmapped line drawings: use a minimum of 1000 dpi.
TIFF: Combinations bitmapped line/half-tone (colour or greyscale): a 
minimum of 500 dpi is required.
DOC, XLS or PPT: If your electronic artwork is created in any of these 
Microsoft Office applications please
supply "as is".

I tired the Postscript file but the file is double heigh as width i do 
not know why.
The problem was already discussed in the tread: [R] High resolution plots

I have to send the images possibly yesterday and I am looking fo a 
suitable solution since two months now.
I tired gsview with converting to all possible Tiff formats but the 
images appear not in color and in a strange black and white way
Some readers are able to read it  (Windows Image view) other not and I 
do not know which reader the journal will use :-(
And the ylab is too small ...

http://biostatistic.de/temp/1.tif 
http://biostatistic.de/temp/2.tif 
http://biostatistic.de/temp/3.tif 
http://biostatistic.de/temp/4.tif 





>In general,
>bitmapped graphics do not resize well, though if you have a specific
>need and know a target image size, you can adjust various parameters to
>look decent. Are you going to view these images in a web browser, where
>you are concerned with display size and resolution?
>
>>From your e-mail headers it appears you are on Windows. If you need a
>re-sizable graphic, use a vector based format such as wmf/emf,
>especially if you need the graphics embedded in a Windows application
>such as Word or Powerpoint. This is the default format under Windows
>when copying and pasting a graphic between applications. You can then,
>fairly freely, resize the image in the target application as you may
>require.
>
>If you are going to print the graphic directly or include it in a
>document for printing (as opposed to just viewing it), then use PDF or
>Postscript.
>

Ok there is a second description for the file format :-(
http://authors.elsevier.com/ArtworkInstructions.html?dc=AI2
there are pdf formats welcome but with defined conditions:

Maybe anybody could give me a hint to get the files in the recommendet 
format.
I will ask them immediately which whether the pdf is allowed or not, 
becaus they have two different instruction sites :-(

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] png scaling problem

2005-09-01 Thread Knut Krueger
scaling<-4
xywidth<-480
resolution<-150
png(filename = "c:/r/anschluss/plots/4.png", width = xywidth*scaling, 
height = xywidth*scaling,pointsize = 12, bg = "white", res = 
resolution*scaling)
..

barplot(xrow,col = barcolors,cex.axis=scaling, ylab="mean time till attachment 
in sec",cex.lab=1.2*scaling) 

I tried to scale the barplot but there is one strange result:
scaling=1
http://biostatistic.de/temp/1.png--- the ylab is ok

scaling=2
http://biostatistic.de/temp/2.png--- the ylab is not ok

scaling=4
http://biostatistic.de/temp/4.png--- the ylab is terrible

is there any better solution to scale the resolution and the width/height?


with regards
Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] standard deviation in barplots

2005-09-01 Thread Knut Krueger



>
>There is an error in your function call. The argument 'ci.h' is
>incorrect, as it should be 'ci.u'. Thus, use:
>
>  
>
... I think I will need glasses 


Tank's a lot Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] standard deviation in barplots

2005-09-01 Thread Knut Krueger
I forgot the error message ...

Error in barplot2.default(xrow, plot.ci = TRUE, ci.l = ci.l, ci.h = ci.h) :
confidence interval values are missing

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] standard deviation in barplots

2005-09-01 Thread Knut Krueger


Sean Davis schrieb:

>I think barplot2 in the gregmisc (gplots) bundle will do that.
>
>Sean
>
>  
>
Ok thank´s but I've got an error and do not found the solution:


ci.l
 [1] 304.09677 202.49907   0.0  63.14547   0.0   0.0   0.0
 [8]   0.0   0.0   0.0
ci.h
 [1] 633.50323 426.10093  45.12493 344.85453 196.19980 198.17632 208.96365
 [8]  76.49691   0.0   0.0
 xrow
 [1] 468.8 314.3  20.1 204.0  96.0  96.0 115.0  36.0   0.0   0.0
barplot2(xrow,plot.ci=TRUE,ci.l=ci.l,ci.h=ci.h)

Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] standard deviation in barplots

2005-09-01 Thread Knut Krueger
Is there any function to plot the standard deviation with the barplots


_ _
  | Deviation
|---
| -|
|  |
|  |   Barplot
|  |
|  |
|  |


with regards
Knut Krueger

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] relation between cex.axis and pointsize in graphics device

2005-08-15 Thread Knut Krueger
I am not able to see the relation between this parameters.
Will I get the same result with 

pointsize=24 and  cex.axis=1
and
pointsize=12 and  cex.axis=2

It seems that the fonts will be only scaled when I am changing the 
pointsize after printing
and it seem that they will be drawn in a better resoultion with the 
second way pointsize=12 and  cex.axis=2


 bmp(filename = "Rplot%03d.bmp", width = 480, height = 480,
 pointsize = 24, bg = "white", res = NA)

 axis(1, 1:7, LETTERS[1:7], cex.axis=1)   



 bmp(filename = "Rplot%03d.bmp", width = 480, height = 480,

 pointsize = 12, bg = "white", res = NA)



 axis(1, 1:7, LETTERS[1:7], cex.axis=2) 



 

with regards
Knut Krueger

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] RGUI crash when opening script in XP Home enviroment

2005-08-12 Thread Knut Krueger



>Prof Brian Ripley schrieb:
>
>  
>
>>However, as I don't know what the `open file button' is, I cannot
>>reproduce it.  Is this MDI or SDI mode, 
>>
>>

found it : MDI Mode
Pager Style multiple windows

Knut Krueger

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] RGUI crash when opening script in XP Home enviroment

2005-08-10 Thread Knut Krueger


Prof Brian Ripley schrieb:

>This is not the place to report reproducible faults: please see the
>posting guide and send a complete bug report to the appropriate place.
>(Let alone three followups from Duncan Mackay!)
>  
>
Thank´s for the hint I sent the error (including the following url) to 
the Bug tracing system, but I also thought that the user here should 
know how to prevent the error.
I lost a lot of time with rewriting scripts which were not saved before 
I opened a new one until I realized the reason of this.

>However, as I don't know what the `open file button' is, I cannot
>reproduce it.  Is this MDI or SDI mode, 
>
Sorry about this, but I don not know the difference and I do not know 
what the shortcuts are standing for
   

>and if the former is this using
>the icon on the toolbar, whose tooltip says it is `open script'?
>
Yes this one but not the 'file -> open script' 
line

>
>Please make clear in your report if this one or two problems, i.e. is the 
>`not closing completely' only after the error?
>  
>
The report with screen prints is available (I'm sorry that it is a 
German operating system):
http://www.biostatistic.de/forum/messages/2291/2350.html

I hope this is clarifying the open questions

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] RGUI crash when opening script in XP Home enviroment

2005-08-10 Thread Knut Krueger


Knut Krueger schrieb:

>If  there is a helpfile open (f.e ?glm) and it is the top window, then 
>an exception error occurs (closing RGUI)
>when I hit the open file button.
>If the helpfile is not the top window (of the RGUI) I am able to open a 
>new script without any error.
>The RGUI is not closing complete there is a blank screen left which I 
>have to close with the X Button or Taskmanager
>
>Windows XP Home - German Version updates installed.
>
>R-Version 2.1.0
>
>I
>
And it is the same problem with the 2.1.1 patched version 
http://www.cran.r-project.org/bin/windows/base/rpatched.html

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] RGUI crash when opening script in XP Home enviroment

2005-08-09 Thread Knut Krueger


Knut Krueger schrieb:

>If there you need any further details please ass for.
>  
>
 ask for  :-(


AppName: rgui.exeAppVer: 2.10.50418.0ModName: r.dll
ModVer: 2.10.50418.0 Offset: 77cc

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] RGUI crash when opening script in XP Home enviroment

2005-08-09 Thread Knut Krueger
If  there is a helpfile open (f.e ?glm) and it is the top window, then 
an exception error occurs (closing RGUI)
when I hit the open file button.
If the helpfile is not the top window (of the RGUI) I am able to open a 
new script without any error.
The RGUI is not closing complete there is a blank screen left which I 
have to close with the X Button or Taskmanager

Windows XP Home - German Version updates installed.

R-Version 2.1.0

If there you need any further details please ass for.

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] High resolution plots

2005-08-06 Thread Knut Krueger


Prof Brian Ripley schrieb:

>>>  
>>>
>>the wmf command but there is nothing to find with help.search("wmf")
>>
>>
>
>Searching for acronyms is not usually a good idea.  Searching for 
>`metafile' should work (on Windows).
>
>Note that R can produce Windows metafiles only on Windows, which is why it 
>is not in `An Introduction to R'.
>
>  
>

I was looking for ?wmf  because ?png,  ?jpeg and ?bmp  is working. Of 
course because the function is named as the ending of the file format

Regards Knut



[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] High resolution plots

2005-08-06 Thread Knut Krueger


Knut Krueger schrieb:

>Is there any possibility to get high resolution plots in a windows xp 
>system?
>I tried it with the device function png(filename = 
>"c:/r/highresplot%d.png",pointsize=12, res=900)
>but when I try to set: width = 480, height = 480 or   pointsize = 12, 
>the text is not scaled in the same way as the plots.
>

There are three bmp based functions available;:
bmp, jpeg, png

bmp is without compression so I decided not to use it 
jpeg is no loss less compression so I decided not to use it 
the third was png

Now I tried the other one and I think that there is a bug in the png code or I 
do not understand the reason:

jpeg(filename = "c:/r/Rplot%03d.jpg", width = 960, height = 960, pointsize = 
24, quality = 100, bg = "white", res = 2400)
witdh/heigth  = 960  <> 10.16 mm
ppi=2400
Results as expected


jpeg(filename = "c:/r/Rplot%03d.jpg", width = 1920, height = 1920,
  pointsize = 48, quality = 100, bg = "white", res = 2400)

witdh/heigth  = 1920  <> 20.32 mm
ppi=2400
Results as expected


bmp(filename = "c:/r/Rplot%03d.bmp", width = 1920, height = 1920, pointsize = 
48, bg = "white", res = 2400)
witdh/heigth  = 1920  <> 20.32 mm
ppi=2400
Results as expected


png(filename = "c:/r/Rplot%03d.png", width = 1920, height = 1920, pointsize = 
48, bg = "white", res = 2400)

witdh/heigth  = 1920  <> 20.32 mm
ppi=150
Result not as expected.

Ok I am able to use the jpeg or bmp format, but does anybody know why the png 
function does not work in the same way as the jpeg and bmp function?

Regards Knut

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] High resolution plots

2005-08-05 Thread Knut Krueger


Gabor Grothendieck schrieb:

>On 7/13/05, Luis Tercero <[EMAIL PROTECTED]> wrote: 
>  
>
>>Dear R-help community,
>>
>>would any of you have a (preferably simple) example of a
>>presentation-quality .png plot, i.e. one that looks like the .eps plots
>>generated by R? I am working with R 2.0.1 in WindowsXP and am having
>>similar problems as Knut Krueger in printing high-quality plots. I have
>>looked at the help file and examples therein as well as others I have
>>been able to find online but to no avail. After many many tries I have
>>to concede I cannot figure it out.
>>
>>I would be very grateful for your help.
>>
>>
>
>   If you want the highest resolution use a vector format,
>not a bitmapped format such as png. See:
>
>http://maths.newcastle.edu.au/~rking/R/help/04/02/1168.html
>
The link is now broken, and I did not copy the hints.
Does anybody knows if it its available at any other location?

And I tried to find

>Thanks for the pointer!  .wmf is far superior, I was just in the dark 
>about the format and R's ability to produce it (An Introduction to R 
>"Device drivers" does not mention it and I had obviously missed the 
>deciding last two words in "?device" 'windows')
>
the wmf command but there is nothing to find with help.search("wmf")

with regards
Knut Krueger



[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] High resolution plots

2005-07-14 Thread Knut Krueger


Peter Dalgaard schrieb:

>Knut Krueger <[EMAIL PROTECTED]> writes:
>
>  
>
>>Peter Dalgaard schrieb:
>>
>>
>>
>>>What is the real issue here? Import trouble? If you're importing to
>>>Word/PowerPoint, why not use the Windows metafile? Perhaps they are
>>>too ugly compared to EPS by your taste?
>>>
>>>  
>>>
>>My reason was
>>http://www.adobe.com/support/techdocs/328541.html
>>
>>
>
>Oh, lovely.
> 
>
isn't it ? :-( 

>Stupid question: You did remember to close the graphics device when
>you generated those plots (dev.off())? 
>  
>
the first idea was no I didn´t ... but I found my script and I did :-)

>If an EPS file doesn't work with an Adobe product, there is some
>reason to suspect that the file is corrupted or that there is an issue
>with R's postscript driver. If you're seeing text corruption outside
>the plot, then surely the E in EPS (for "encapsulated") is not working
>as intended. 
>  
>
That's a normal behaviour in windows surrounding.

>Did you try the pdf() driver? That usually comes out rather nicely in
>connection with Acrobat/Distiller.
>  
>
No I did not actually.
the plots are good enough for printing with an laser printer, but they 
are not good enough for the journal.
It is curious. one of them wants only pdf the other one wants tiff and 
wordperfect or word .. maybe the next one will receive old latin stone 
plates ;-)

Therefore  for one journal  it is enough to use the eps or bmp 
resolution with pdf file or just an pdf output, but for the next one I 
will need a tiff with 300 dpi at least.


 
with regards
Knut Krueger
http://www.biostatistic.de


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] High resolution plots

2005-07-14 Thread Knut Krueger


Peter Dalgaard schrieb:

>What is the real issue here? Import trouble? If you're importing to
>Word/PowerPoint, why not use the Windows metafile? Perhaps they are
>too ugly compared to EPS by your taste?
>  
>

My reason was
http://www.adobe.com/support/techdocs/328541.html

I tried to plot emf files with pagemaker (not even a cheep or freeware 
pprogramm) and the lyaout was corrupted.
I tried to use eps files the text was corrupted
and I do not know how to transfer the *.ps file to tiff.
Maybe there is any payware but if you have a layout application for more than 
700 Euro you don´t like to by any further application only to change the *.ps 
format.
So I am looking for any solution to increase the resolution.
Maybe I do not understand the meanings of res, width and heigh or it is not 
working as expected (see answer from 12 Jul 2005)
I still hope that Porf. Brian D. Ripley will answer to this question even 
though I got him on his nerves with a wrong answer. :-(

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] texture in barplots?

2005-07-13 Thread Knut Krueger


Knut Krueger schrieb:

>Adrian Dusa schrieb:
>
>  
>
>>Is it possible to draw barplots using a texture instead of colors, for a 
>>black 
>>and white printer?
>>
>> 
>>
>>
>>
>  barplot(height,.,density=c(4,6,8,10)  ...)
>
>for each bar one number - this example is for a barplot with 4 bars.
>
>  
>
forgot something
you could also set the angle and the color of the lines
 
barplot(height,.,col=c("blue","blue","blue","green"),density=c(4,6,8,10),angle=c(15,30,60,90),
 ...)

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] texture in barplots?

2005-07-13 Thread Knut Krueger


Knut Krueger schrieb:

>Adrian Dusa schrieb:
>
>  
>
>>Is it possible to draw barplots using a texture instead of colors, for a 
>>black 
>>and white printer?
>>
>> 
>>
>>
>>
>  barplot(height,.,density=c(4,6,8,10)  ...)
>
>for each bar one number - this example is for a barplot with 4 bars.
>
>  
>
forgot something
you could also set the angle and the color of the lines
 
barplot(height,.,col=c("blue","blue","blue","green"),density=c(4,6,8,10),angle=c(15,30,60,90),
 ...)

with regards
Knut Krueger
http://www.biostatistic.de


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] texture in barplots?

2005-07-13 Thread Knut Krueger


Adrian Dusa schrieb:

>Is it possible to draw barplots using a texture instead of colors, for a black 
>and white printer?
>
>  
>
  barplot(height,.,density=c(4,6,8,10)  ...)

for each bar one number - this example is for a barplot with 4 bars.

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] High resolution plots

2005-07-12 Thread Knut Krueger
Sorry i sent the answer not to the mailing list - here it is

Brian D Ripley schrieb:

>On Tue, 12 Jul 2005, Knut Krueger wrote:
>
>  
>
>>Prof Brian Ripley schrieb:
>>
>>
>>
>>>Please read carefully what `resolution' means for a png() device (and a
>>>PNG file).  It is a hint to the viewer in the file header (often ignored),
>>>as described in the R help file.
>>>
>>>  
>>>
>  
>
>>>On Tue, 12 Jul 2005, Knut Krueger wrote:
>>>
>>>
>>>
>>>  
>>>
>>>>Is there any possibility to get high resolution plots in a windows xp
>>>>system?
>>>>I tried it with the device function png(filename =
>>>>"c:/r/highresplot%d.png",pointsize=12, res=900)
>>>>but when I try to set: width = 480, height = 480 or   pointsize = 12,
>>>>the text is not scaled in the same way as the plots.
>>>>
>>>>
Ok first:
I do not want anybody to get angry and I am the first time in this group.
I will make any mistakes like sending you your own help file and I
apologize in advance for those mistakes.

>Not if you just include those arguments or not.  Yes if you include
>res=900 or not, but that is not what you said.
>  
>
I tried to include res=600 and res=300 there was no difference in the
file, both size was 4kb  480*480 Pixel and 150 dpi
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=300)
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=600)


second attempt was to increase width = 480, height = 480 to width = 960,
height = 960

png(filename = "c:/r/highresplot%d.png",width = 960, height =
960,pointsize=12, res=600)
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=300)


both is the file size 8kb either with res=300 or res=600
double file size with double size of the device that's what i expected.

The letters are nearly unreadable because they are very small - ok
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=24, res=300)
Letters are in the same size as
png(filename = "c:/r/highresplot%d.png",width = 480, height =
480,pointsize=12, res=300)
also that's what I expected, but the quality of the characters is as bad
as when I would extract the plot with any graphic application
and the small lines from boxplots are sometimes visible sometimes not.


>Why aer you sending me a help file I wrote, one which you seem to be
>unable to understand?  I am not the one failing to notice what it says.
>


But maybe you are right that I am not understanding the help file, but
I hope that clarifies my problems and my mistakes

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] High resolution plots

2005-07-11 Thread Knut Krueger
Is there any possibility to get high resolution plots in a windows xp 
system?
I tried it with the device function png(filename = 
"c:/r/highresplot%d.png",pointsize=12, res=900)
but when I try to set: width = 480, height = 480 or   pointsize = 12, 
the text is not scaled in the same way as the plots.

with regards
Knut Krueger
http://www.biostatistic.de

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html