Displaying 20 results from an estimated 9000 matches similar to: "Exporting objects plotted with plot3d() - rgl package"
2009 Apr 21
1
joined R-today
Friends,
I am a newbie to R. Just installed and started with R. I installed netcdf
library (netcdf-4.0.tar.gz) and then ncdf package of R from CRAN with the
following command.
R CMD INSTALL
--configure-args="-with-netcdf_incdir=/usr/local/netcdf/include
-with-netcdf_libdir=/usr/local/netcdf/lib" ncdf_1.6.tar.gz
The installation was successful. But when i try to use ncdf inside R, i
2009 Apr 21
1
ncdf,RNetCDF
Friends,
Someone please share your experience in installing ncdf and RNetCDF in
fedora10. I am not able make it work as it throws me the following error. My
R version is 2.8.0.
> library(ncdf)
unable to load shared library '/usr/lib/R/library/ncdf/libs/ncdf.so':
/usr/lib/R/library/ncdf/libs/ncdf.so: cannot restore segment prot after
reloc: Permission denied
Error in library(ncdf)
2010 Mar 09
1
ncdf installation
Friends,
I tried to install ncdf package in ubuntu with the following command.
R CMD INSTALL
--configure-args="-with-netcdf_incdir=/apps/netcdf/4.0.1/gcc/include
-with-netcdf_libdir=/apps/netcdf/4.0.1/gcc/lib" ncdf_1.6.tar.gz
The installation was stopped throwing the following error. I tried to google
it but didnt find any solution. someone kindly write me what is going wrong.
**
2009 Apr 21
6
Sampling in R
[This email is either empty or too large to be displayed at this time]
2009 Apr 21
4
plotting with R
Friends,
i) I am new to R. Kindly suggest some resources that has examples of
plotting with R.
ii) How to set number of tick marks and labels, i have a x axis ranging fro
1 to 21. By default R shows the tick marks at 5, 10,15,20. How can i change
this.
Thanks,
Bala
[[alternative HTML version deleted]]
2009 May 04
3
problem with ms office
Friends,
I installed MS office 2k7 with wine 1.1.15. I am able to open the
applications and work on it. However if i try to copy a figure from
powerpoint and paste is on the word, it is not working. The reverse is also
not working.
In addition, i am not able to move the figures in the work file to the
appropriate positions. I dnt understand what is going wrong. Any suggestion
on how to resolve
2009 Feb 06
1
Tables in legend
I need to create a legend for a simple scatter plot in the following
format.
This is Blah1 number1 number2
This is Blah2 number3 number4
.
.
.
This is Blah6 number11 number12
I looked up these help pages and found the following solution.
lStr<-c(Blah1, Blah2,....Blah6, number 1, number2, ...number12)
legend(x="topright",lStr,ncol=3)
So this creates the tabular format I am
2009 Apr 20
7
Fitting linear models
I am not sure if this is an R-users question, but since most of you here
are statisticians, I decided to give it a shot.
I am using the lm() function in R to fit a dependent variable to a set
of 3 to 5 independent variables. For this, I used the following
commands:
>model1<-lm(function=PBW~SO4+NO3+NH4)
Coefficients:
(Intercept) SO4 NO3 NH4
0.01323 0.01968
2011 Jun 06
2
re-installing a software (office 2007)
Dear Friends,
I am using wine version 1.1.37 in fedora 10. I have been using ms office
2007. Suddenly word behaves in a strange way that when i open word, the
system hangs. I would like to re-install the ms office application. So i
would like to know,
How to un-install the existing version and install the ms office once again
?.
Thanks in advance,
Bala
-------------- next part --------------
An
2009 Feb 03
3
Boxplots by variable
Dear R users,
I have a matrix "final" which looks like this:
final
oSO4 oNO3 mSO4 mNO3
[1,] 3.3728 0.2110 1.9517421 1.01883602
[2,] 0.8249 0.0697 1.5970292 0.11368781
[3,] 0.2636 0.1004 0.6012445 0.24356332
[4,] 8.0072 0.3443 6.1016998 3.63207149
[5,] 13.5079 0.6593 12.4011068 1.55323386
[6,] 6.1293 0.1989 5.7620926 0.12884845
[7,] 0.6004 0.0661
2009 Apr 14
2
Controlling widths in write.fwf()
Is there a way to handle the widths of values being written to a file
using wrtite.fwf() ?
For example, I used read.fwf(file, width.vector) to read a file. After
making the necessary data manipulation, I want to write the data to a
new file in the same width.vector format. Is there a way to specify
this?
Thanks in Advance
Aparna
[[alternative HTML version deleted]]
2007 Jun 14
4
question about formula for lm
Dear all;
Is there any way to make this to work?:
.x<-rnorm(50,10,3)
.y<-.x+rnorm(50,0,1)
X<-data.frame(.x,.y)
colnames(X)<-c("Xvar","Yvar")
Ytext<-"Yvar"
lm(Ytext~Xvar,data=X) # doesn't run
lm(Yvar~Xvar,data=X) # does run
The main idea is to use Ytext as input in a function, so you just type
"Yvar" and the model should fit....
2009 Apr 21
0
joined R-today [SELinux]
Redhat's Security Enhanced Linux (in some modes)
generates messages like that when code in a shared library
is not compiled to have position independent code.
I.e., the -fpic or -fPIC flag was not supplied when
compiling. Your build log showed that -fpic was used
when compiling your code, but the 3rd party library,
libnetcdf.a may not have been compiled this way.
The command
2005 Jul 05
1
by (tapply) and for loop differences
I am getting a difference in results when running some analysis using by and
tapply compare to using a for loop. I've tried searching the web but had no
luck with the keywords I used.
I've attached a simple example below to illustrates my problem. I get a
difference in the mean of yvar, diff and the p-value using tapply & by
compared to a for loop. I cannot see what I am doing wrong.
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
I am running R version 2.15.1 in Windows XP
I am having problems with a function I'm trying to create to:
1. subset a data.frame based on function arguments (colname & parmname)
2. rename the PARMVALUE column in the data.frame based on function
argument (xvar)
3. generate charts
plotvar <- function(parentdf,colname, parmname,xvar,yvar ){
subdf <-
2011 Feb 25
1
speed up process
Dear users,
I have a double for loop that does exactly what I want, but is quite
slow. It is not so much with this simplified example, but IRL it is slow.
Can anyone help me improve it?
The data and code for foo_reg() are available at the end of the email; I
preferred going directly into the problematic part.
Here is the code (I tried to simplify it but I cannot do it too much or
else it
2007 Nov 15
1
Writing a helper function that takes in the dataframe and variable names and then does a subset and plot
Hi,
I have a large dataframe than I'm writing functions to explore, and to
reduce cut and paste I'm trying to write a function that does a subset
and then a plot.
Firstly, I can write a wrapper around a plot:
plotwithfits <- function(formula, data, xylabels=c('','')) {
xyplot(formula, data, panel =
function(x,y, ...) {
panel.xyplot(x,y,
2011 Apr 01
3
programming: telling a function where to look for the entered variables
Hi there,
Could someone help me with the following programming problem..?
I have written a function that works for my intended purpose, but it
is quite closely tied to a particular dataframe and the names of the
variables in this dataframe. However, I'd like to use the same
function for different dataframes and variables. My problem is that
I'm not quite sure how to tell my function in
2019 May 25
3
Increasing number of observations worsen the regression model
I have the following code:
```
rm(list=ls())
N = 30000
xvar <- runif(N, -10, 10)
e <- rnorm(N, mean=0, sd=1)
yvar <- 1 + 2*xvar + e
plot(xvar,yvar)
lmMod <- lm(yvar~xvar)
print(summary(lmMod))
domain <- seq(min(xvar), max(xvar))??? # define a vector of x values to
feed into model
lines(domain, predict(lmMod, newdata = data.frame(xvar=domain)))??? #
add regression line, using
2009 Jun 03
1
installing latest wine
Friends,
I installed wine in fedora with *yum install wine*. It has installed version
1.1.15. I want to install the latest version. How to do it with yum.
When i give *yum update wine*, no updates are coming.
Thanks,
Bala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-users/attachments/20090603/f879f865/attachment.htm>