Displaying 20 results from an estimated 9000 matches similar to: "High resolution figures for a paper?"
2008 Sep 23
3
Generating series of distributions with the same skewness and different kurtosis or with same kurtosis and different skewness?
Dear R users,
I hope to explain the concepts of skewness and kurtosis by generating
series of distributions with same skewness and different kurtosis or with
same kurtosis and different skewness, but it seems that i cannot find the
right functions.
I have searched the mailing list, but no answers were found.
Is it possible to do that in R? Which function could be used?
Thanks a lot.
--
2007 Sep 13
2
handle dates in R?
Dear Rusers,
I have some data in .csv file like "2004-8-1" and "2004-10-1", and i need
to convert them into days from the origin (January 1, 1960).
I have tried the function date.mmddyyyy(), but cannot get it. Anybody can
show me how to handle the date data?
Thanks very much!
My dataset like:
time
2004-8-1
2004-10-1
2001-9-1
2002-9-1
--
With Kind Regards,
2008 Apr 26
6
resolution (dpi) problem
I am using R 2.4.1 with Windows XP.
I use the plot command in a fairly simple script and I use the right mouse
click on the plot and save as a postscript file. I used the resultant file
in a paper which was submitted electronically. However, I get the following
response from the journal:
Your manuscript has been unsubmitted because you failed to meet the
submission guidelines as indicated
2008 Dec 06
1
Questions on the results from glmmPQL(MASS)
Dear Rusers,
I have used R,S-PLUS and SAS to analyze the sample data "bacteria" in
MASS package. Their results are listed below.
I have three questions, anybody can give me possible answers?
Q1:From the results, we see that R get 'NAs'for AIC,BIC and logLik, while
S-PLUS8.0 gave the exact values for them. Why? I had thought that R should
give the same results as SPLUS here.
2006 Nov 07
1
plot questions?-errors in persp(x1, x2, y) and contour(x1, x2, y)
Dear Uwe Ligges ,
I still can't finish it.
*> aa* #my data
x1 x2 y
5 0.05 6 4.4180
1 0.50 3 2.6979
4 0.50 9 2.9000
7 0.95 6 2.6230
8 0.95 6 2.9078
9 0.95 6 2.6727
3 1.40 3 2.4203
2 1.40 9 2.5329
6 1.85 6 2.4867
*> attach(aa)*
*> persp(x1,x2,y*
error in persp.default(x1, x2, y) : increasing 'x' and 'y' values expected
2007 Oct 12
3
Anybody has ever met the problem to add a legend to a figure generated by image()?
Dear friends,
Anybody has ever met the problem to add a legend to a figure generated by
image()? I have three variables,x,y and z.
x and y are the coordinates, and z is the third values. we can use image(x,
y, z,...) to generate a figure according to the z-values, but the problem is
the figure legend. How can the legend be added to a figure generated
by image()? Note that filled.contour() can
2007 Aug 17
3
Is there any good tools to facilitate us to create R functions?
Dear R users,
We have some programs for the specific task in our research, but they were
very commonly used. We want to make some functions for them, anybody can
recommend any good tools to facilitate us to create R functions even without
going deep into the theories of R functions ?
Any suggestions or help are greatly appreciated.
--
With Kind Regards,
oooO:::::::::
(..):::::::::
2007 Oct 02
2
How to add legend for image()?
Dear friends,
The following is an example to explain my question. I want to get a
legend which will show the z-values according to different colors in image()
function.
x<-sort(runif(10)) #x-coordinates
y<-sort(runif(10)) #y-coordinates
z<-matrix(runif(100),nrow=10) #attributes values
image(x,y,z,col=gray((6:3)/6))
# legend(x,y,legend=z,col=gray((6:3)/6)) #error. the colors should
2007 Jan 30
2
R and S-Plus got the different results of principal component analysis from SAS, why?
Dear Rusers,
I have met a difficult problem on explaining the differences of principal
component analysis(PCA) between R,S-PLUS and SAS/STATA/SPSS, which wasn't
met before.
Althought they have got the same eigenvalues, their coeffiecients were
different.
First, I list my results from R,S-PLUS and SAS/STATA/SPSS, and then show
the original dataset, hoping sb. to try and explain it.
2006 Nov 07
1
plot questions?
Dear Rusers,
I want to know which function in R can perform the following tasks:
1.surface-data grid(x,y,z) #which could be done in splus, the name was from
splus's options of graph
2. contourplot(x,y,z) #which could be done in splus
By the way, where can i find some useful materials to learn to plot
3-dimensionel graphs?
Thanks!
--
With Kind Regards,
oooO:::::::::
(..):::::::::
2007 Aug 25
1
How can i inhibit this work "Please select a CRAN mirror for use in this session "?
Dear Rusers,
When i start R, there always the following work to do first, how should i
cancel it?
*--- Please select a CRAN mirror for use in this session ---*
I don't know why it does so, maybe i have done something unintentionally.
Thanks.
--
With Kind Regards,
oooO:::::::::
(..):::::::::
:\.(:::Oooo::
::\_)::(..)::
:::::::)./:::
::::::(_/::::
:::::::::::::
2007 Sep 14
1
Calculate the angles for a point dataset?
Dear Rusers,
I'd like to take the cases of cancer of the larynx in chorley(spatstat) to
explain my question.
I want to join the points of cancer of the larynx with the disused
industrial incinerator to generate lines, and then calculate the angles of
these line comparing the horizontal line?
How can i get it? It seems to be difficult to get the angles
Thanks a lot.
--
With Kind
2006 Nov 19
2
questions on adding reference line?
Dear Ruser,
I use abline() function to add the reference line successfully, but i
can't display the values corresponding to the reference line on the x/y
axis, anybody knows how to display it?
*My simulated programs:*
y<-rnorm(50)
plot(x,y)
abline(v=0.5) *#my question is how to display x=0.5 in the x axis?*
Thanks in advance.
--
With Kind Regards,
oooO:::::::::
(..):::::::::
2008 Jan 01
3
Specify a correct formula in R for Piecewise Linear Functions?
Dear all,
I have two variables, y and x. It seems that the relationship between them
is Piecewise Linear Functions. The cutpoint is 20. That is, when x<20, there
is a linear relationship between y and x; while x>=20, there is another
different linear relationship between them.
How can i specify their relationships in R correctly?
# glm(y~I(x<20)+I(x>=20),family = binomial, data =
2009 May 08
1
graph resolution windows (dpi) using x11 device
Dear list members,
After looking in the www, I found this subject has been in discussion
previously on the mailing list, although I could not solve it. I also
found two wikis, but similarly, could not reach a conclusion.
I need to re-produce my figures with 1200 dpi, in tiff format, for a
journal (off course :-s).
I am working on windows xp professional, R version 2.7.1, using x11 to
open
2006 Oct 12
2
how to get the variance-covariance matrix/information of alpha and beta after fitting a GLMs?
Dear friends,
After fitting a generalized linear models ,i hope to get the variance of
alpha,variance of beta and their covariance, that is , the
variance-covariance matrix/information of alpha and beta , suppose *B* is
the object of GLMs, i use attributes(B) to look for the options ,but can't
find it, anybody knows how to get it?
> attributes(B)
$names
[1] "coefficients"
2007 Sep 17
2
What's the corresponding function in R for lo() function in S-PLUS?
Dear friends,
In S-PLUS, we can use the following argument, but not in R.
mode12 <- gam(score1 ~ lo(latitude) + lo(longitude))
I searched the help in S-PLUS, it says lo() Allows the user to specify a
Loess fit in a GAM formula, but i didn't find the correponding function in
R.
Anybody knows how to do the similar task in R?
Thanks very much.
--
With Kind Regards,
oooO:::::::::
2007 Dec 31
2
help on ROC analysis
Dear all,
Some functions like 'ROC(Epi)' can be used to perform ROC analyssi, but it
needs us to specify the fitting model in the argument. Now i have got the
predicted p-values (0,1) for the 0/1 response variable using some other
approach, see the following example dataset:
id mark predict.pvalue
1 1 0.927
2 0 0.928
3 1 0.928
..................
2013 Apr 16
1
Change the default resolution for plotting figures?
Hi,
I want to save a plot in the windows device as png and the default
resolution is 72dpi. Is it possible to increase the default resolution
to for example 300 dpi?
I have thought of using function png(..., res=300), but the problem is
that the figure produced this way looks different than the one shown
in the windows device. One notable difference is the missing of some
ticks in the x
2008 Mar 24
1
Great difference for piecewise linear function between R and SAS
Dear Rusers,
I am now using R and SAS to fit the piecewise linear functions, and what
surprised me is that they have a great differrent result. See below.
#R code--Knots for distance are 16.13 and 24, respectively, and Knots for y
are -0.4357 and -0.3202
m.glm<-glm(mark~x+poly(elevation,2)+bs(distance,degree=1,knots=c(16.13,24))
+bs(y,degree=1,knots=c(-0.4357,-0.3202