Displaying 20 results from an estimated 40000 matches similar to: "can't plot a line"
2007 Dec 06
1
S3 and S4 clash
Hello:
How can I work around the conflict between the S3 and S4
illustrated in the example below? I'm developing a package that
requires a function in 'stats4', but when 'stats4' is attached, it
breaks my AIC function. I could give my AIC function another name so it
no longer uses the generic dispatch, but I wonder if there is another way.
Thanks,
2012 Jun 02
2
Double-buffering problem, this time with an example.
Most of my animations that used to work
on windows() version 2.11.1 and earlier now flash
as if the double buffering is turned off or buffer swapping
is triggered by other events than in the past.
The simplified example below using symbols
should illustrate the problem in a windows environment.
windows()
radius <- 8
n <- 6
ang <- seq(0,2*pi,length=n+1)[-(n+1)]
ca <- cos(ang)
sa
2013 Feb 04
4
rJava works with 32-bit but not 64
Hello:
rJava works for me under 32-bit but under not 64-bit R; see below.
Suggestions?
Thanks,
Spencer
> library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: stop("No CurrentVersion entry in '", key, "'! Try re-installing
Java and make sure R and Java have matching architectures.")
2007 Mar 18
1
eigen returns NAs from a real matrix
Hi, All:
Attached please find a symmetric, indefinite matrix for which
'eigen(...)$vectors' included NAs:
> load("eigenBug.Rdata")
> sum(is.na(eigen(eigenBug)$vectors))
[1] 5670
> sessioninfo()
Error: could not find function "sessioninfo"
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
locale:
LC_COLLATE=English_United
2011 Dec 17
2
latest Rtools missing "inconsolita.sty"
Hello:
What do you suggest I do to overcome "LaTeX Error: File
'inconsolata.sty' not found", which I got running "R CMD check" on a
package using Rtools I downloaded yesterday?
I found a similar question to R-Help Nov. 3 (URL below), but I've not
yet had success in replicating the solution outlined there. I tried
several different sets of
2008 Nov 10
2
typo in ?pie
Hello:
The help page for 'pie' includes "judgements"; the standard
spelling does not include "e", as spell checkers have informed me many
times.
... in case someone wants to correct that typo.
Best Wishes,
Spencer
sessionInfo()
R version 2.8.0 (2008-10-20)
i386-pc-mingw32
locale:
LC_COLLATE=English_United
2020 Apr 30
3
"not a valid win32 application" with rtools40-x86_65.exe on Windows 10
Hello, All:
????? "00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes:
Error:? package or namespace load failed for 'Ecfun':
?.onLoad failed in loadNamespace() for 'rJava', details
? call: inDL(x, as.logical(local), as.logical(now), ...)
? error:? unable to load shared object 'c:/Program
2012 May 04
1
Rprofile.site under Windows 7?
Hello All:
I'm still unable to get Rprofile.site to set, e.g.,
options(max.print=222), as I did with previous versions of R.
I just found similar questions posed by Trevor Miles and Ross Bowden
with replies by Uwe Ligges and Duncan Murdoch.
In addition to the things I tried documented below, I also copied
Rprofile.site into "R_HOME/etc/i386" and
2008 Apr 29
2
help text for xlim
Dear R-developers,
A student asked me today of how to specify the limits of the x-axis. I
knew that he should use xlim, but I tried to encourage him to have a try
himself with the various help functions. I do not judge if he used the
correct search strategy or right key words, but anyway here is what he
tried: he looked at ?plot. There xlim is not mentioned. He checked ?par.
There you find
2013 Feb 04
2
Wide character in print?
Hello:
I get "Wide character in print" from trying
read.xls("22_data.xls") in the gdata package, with "22_data.xls"
downloaded from "Varieties_Country_A-E.xls" at
"http://www.reinhartandrogoff.com/data/browse-by-topic/topics/7/":
> library(gdata)
> read.xls("22_data.xls")
Wide character in print at
2007 Aug 10
1
Unexpected behavior in PBSmapping package
Using R 2.5.1 on Windows XP Professional, and PBSmapping package version
2.51, I have encountered some behavior which puzzles me. I am including
the package's listed maintainer on this email but also seek the thoughts
of the R-help community.
I have a set of EventData, which I want to plot as points, and to color
the points according to some criterion. It turns out that some of my
2012 May 20
4
write.xls
Hello, All:
The "writeFindFn2xls" function in the "sos" package tries to
write an Excel file with 3 sheets ('PackageSum2', 'findFn', 'call').
Unfortunately, it is often unable to do this because of configuration
problems that are not easy to fix. I've found 3 contributed packages
that provide facilities to write Excel files with
2011 Jul 10
2
sort infelicity
Hello:
sort(c('A', 'b', 'C')) seems to produce different answers in R
interactive than in "R CMD check", at least under both Fedora 13 and
Windows 7 with Windows 7 sessionInfo() copied below:
In interactive, the result is c('A', 'b', 'C'); with R CMD
check, it is c('A', 'C', 'b'). This produced
2011 May 17
1
scales argument in bwplot (lattice)
Suppose I have data such as the following
set.seed(12345)
tmp <- data.frame(var1 = rnorm(100), var2 = rnorm(100), var3=rnorm(100, 10, 30))
tmp1 <- data.frame(vars = with(tmp, c(var1, var2, var3)), type = gl(3, 100))
var3 is on a different scale, but I create the following plot, which looks terrible as a result
bwplot(~ vars|type, tmp1,
layout = c(1,3),
)
Of course, I can
2010 Jul 11
2
Interrupt R?
How can one interrupt the following gracefully:
while(TRUE){
Sys.sleep(1)
}
In R2.11.1 under Emacs+ESS, some sequence of ctrl-g, ctrl-c
eventually worked for me. Under Rgui 2.11.1, the only way I've found
was to kill R.
Suggestions on something more graceful?
Beyond this, what would you suggest to update a real-time report
when new data arrives in a certain
2013 May 20
1
Objects created by more than one data call?
Hello, All:
If I use LazyData with the Ecdat package on R-Forge, "R CMD
check" reports "no visible binding for global variable
'nonEnglishNames'", where 'nonEnglishNames' is a dataset in Ecdat used
as the default argument for a function. With LazyData, that NOTE
disappears. However, then I get, "Warning: objects 'Hstarts',
2008 May 06
2
gfortran: Command not found
Hi, All:
How do I get information about the "R CMD check / build / install"
process, especially regarding what software to install and how to
configure it under Windows XP?
I ask, because "R CMD check" complained, "gfortran: Command not
found". I found 'gfortran-sjlj.exe' in 'C:\Program
Files\R\Rtools\MinGW\bin', which is in the
2010 Dec 06
3
0.5 != integrate(dnorm,0,20000) = 0
Hello:
The example "integrate(dnorm,0,20000)" says it "fails on many
systems". I just got 0 from it, when I should have gotten either an
error or something close to 0.5. I got this with R 2.12.0 under both
Windows Vista_x64 and Linux (Fedora 13); see the results from Windows
below. I thought you might want to know.
Thanks for all your work in creating
2013 Mar 21
1
plot and save as png
Hi A.K
This is working
layout(matrix(c(1,2,3,4), 4, 1, byrow = TRUE))
plot(sin, -pi, 10*pi)
plot(sin, -pi, 20*pi)
plot(sin, -pi, 30*pi)
plot(sin, -pi, 40*pi)
dev.off()
but if I add this line
png(filename = "fname.png", width = 900, height = 600, units = 'px')
no plot is generated.
where is the problem?.
thanks
veepsirtt
> png(filename = "fname.png", width =
2008 Mar 23
2
problem with 'install.packages'
Hi, All:
Is there a way to identify whether any users are using a
particular package in a shared network R installation?
I ask, because we have such a multiple-user installation and when
I tried to install a package using Rgui that was in use by Rterm on a
single-user installation, 'install.packages' deleted the existing
package but failed to install the new version;