Displaying 20 results from an estimated 20000 matches similar to: "R CMD install runs out of memory"
2012 Feb 07
1
Using custom R_LIBS with R CMD install
Hi all,
Am I using the correct syntax to set a custom R_LIBS when running R
CMD INSTALL from the command line?
I get:
R_LIBS=/Users/hadley/R-dev R CMD INSTALL aL3xa-rapport-08e68ca/
# Desktop : R_LIBS=/Users/hadley/R-dev R CMD INSTALL aL3xa-rapport-08e68ca/
# * installing to library ?/Users/hadley/R?
# ERROR: dependency ?ascii? is not available for package ?rapport?
But:
ls
2015 Apr 29
2
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 12:53 PM, Winston Chang <winstonchang1 at gmail.com>
wrote:
> On Tue, Apr 28, 2015 at 3:04 PM, G?bor Cs?rdi <csardi.gabor at gmail.com>
> wrote:
> >
> >
> > E.g. if package 'ggplot2' uses 'stats::density()', and package 'igraph'
> > also defines 'density()', and 'igraph' is on the search
2011 Aug 16
1
ggplot - some questions concerning histograms
Hello,
I am a beginner with ggplot and after doing simple graphs (histogram, segments etc.)
some questions came up:
1) I tried to do a histogram, but nothing is displayed although it works with another vector.
I think it is because of the very small values (n=1000, min=1.222e-24 max, 1.890e-20).
I used qplot(variable,geom="histogram")... If do it with the standard plot function it
2009 May 07
1
I updated/reinstalled ggplot2 and the trouble started...
Hi Ian,
Per your suggestion, I reinstalled R 2.9.0, then
I reinstalled ggplot2 on top. The problem persists.
Here's the what happens after the installation:
> qplot (carat, price, data = diamonds, alpha = I(1/10))
Warning message:
In grid.Call.graphics("L_points", x$x, x$y, x$pch, x$size) :
semi-transparency is not supported on this device: reported only once per
2008 Oct 28
1
does qplot works with Sweave?
Hi Hadley:
I'm practicing writing a document using MikTex but can't make qplot to execute. It works when using 'plot' though. Is this a normal behaviour?
\documentclass[9pt]{article}
\title{ggplot2 example}
\begin{document}
\maketitle
\section*{Examples of using ggplot2}
The goal is to be able to import ggplot2 graphics into the annual report.
Hadley Wickham has done a great
2011 Apr 13
2
Line plots in base graphics
Am I missing something obvious on how to draw multi-line plots in base graphics?
In ggplot2, I can do:
data(Oxboys, package = "nlme")
library(ggplot2)
qplot(age, height, data = Oxboys, geom = "line", group = Subject)
But in base graphics, the best I can come up with is this:
with(Oxboys, plot(age, height, type = "n"))
lapply(split(Oxboys[c("age",
2011 Dec 23
1
Debugging namespace problems
Hi all,
I frequently find that I've failed to export something in my NAMESPACE
and hence my package doesn't work when it's imported into another
package. Does anyone have suggestion for debugging this type of
problem? R CMD check passes without any ns related errors on both the
importee and the importer.
I've attached a reproducible example - if you install the development
2010 Jun 23
1
Plotting Data on a Map
Hi:
I am practicing with the attached shapefile and was wondering
if I can get some help. Haven't used 'rgdal' and 'maptools' much
but it appears to be a great way bring map data into R.
Please take a look at the comments and let me know if I need to
explain better what I am trying to accomplish.
library(rgdal)
library(maptools)
library(ggplot2)
dsn="C:/Documents and
2012 Nov 28
1
Opening and closing quartz graphic device crashes R
> replicate(1000, {dev.new(); dev.off()})
R(83204,0xacdc1a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(83204,0xacdc1a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
...
*** caught bus error
2010 Sep 01
1
S3 method for package listed in suggest/enhance
Hi all,
The profr package provides a method for displaying its output with
ggplot: ggplot.print. You don't need this ggplot2 to use profr, so
ggplot2 is listed under enhances in the DESCRIPTION file.
If I have just S3method(ggplot, profr) in my NAMESPACE, then I get:
** testing if installed package can be loaded
Error : object 'ggplot' not found whilst loading namespace
2018 Jan 15
0
Steps to create spatial plots
You will need to coerce your data into a "spatial" kind, as implemented in
`sp` or as of late, `sf` packages. You might want to give the vignettes a
whirl before you proceed.
Roughly, you will have to coerce the data to Spatial* (you could go for a
point, raster or grid type, I think) and also specify the projection. Once
you have that, plotting should be handled by packages.
Here are a
2007 Jun 17
1
[ggplot2] Change color of grid lines
Hi,
I am making myself familiar with ggplot2 (I really like the examples
at <http://had.co.nz/ggplot2/>).
One thing that really annoys me is the default use of white grid
lines and a gray background [1, 2]. I simply would like to have black
grid lines and a white background. No problem, I thought, "This is R.
There is no if. Only how." (fortune("Simon Blomberg")).
2014 Dec 23
2
CRAN and ggplot2 geom and stat extensions
I am thinking about adding several geom and stat extensions to ggplot2
in the Hmisc package. To do this requires using non-exported ggplot2
functions as discussed in
http://stackoverflow.com/questions/18108406/creating-a-custom-stat-object-in-ggplot2
If I use the needed ggplot2::: notation the package will no longer pass
CRAN checks. Does anyone know of a solution? I'm assuming that
2011 Feb 17
3
ggplot2, 'se' variable in geom_errorbar's limits?
Dear R-list
I'm working with with geom_errorbar; specifically I'm trying to
reproduce the example Hadley Wickham have on
http://had.co.nz/ggplot2/geom_errorbar.html (all in the button of the
page) where he makes an nice plot with errorbars and then draw lines
between the points.
What confuses me is the 'limits' he defines for the errorbars from the
se variable.
First he creates
2009 Jul 07
1
curve from a formula with ggplot2
Hi all,
I'm smoothly transferring my lattice graphs to ggplot2 graphs, but I'm stuck
on representing a curve from a formula.
I'm looking for the equivalent of curve() in ggplot2, Hadley Wickham
mentions geom_curve, but as far as I've seen in the help it doesn't exist.
My need is to plot a regular scatter plot of experimental data (easy to do
actually) and then add the
2009 Sep 11
1
bar chart with means - using ggplot
Like this?
# example using qplot
library(ggplot2)
meanprice <- tapply(diamonds$price, diamonds$cut, mean);meanprice
cut <- factor(levels(diamonds$cut), levels = levels(diamonds$cut))
qplot(cut, meanprice, geom="bar", stat="identity", fill = I("grey50"))
dev.new() # create a new graph to compare with qplot
# Example using ggplot
ggdata <-
2015 Apr 29
4
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 1:45 PM, Gabriel Becker <gmbecker at ucdavis.edu>
wrote:
> Gabor,
>
> To play devil's advocate a bit, why not just have the package formally
> import the functions it wants to use (or the whole package if that is
> easier)?
>
This is exactly my goal. And to facilitate this, R CMD check could remind
you if you forgot to do the formal import.
2007 Aug 19
2
Installing dependent packages
Hi all,
When installing ggplot2 on with install.packages("ggplot2", dep = T),
the colorspace dependency doesn't get installed (see below for
transcript from R session). The relevant lines from my description
file are:
Depends: R (>= 2.4), grid, reshape (>= 0.8.0), proto, splines, MASS,
RColorBrewer, colorspace
Suggests: quantreg, Hmisc, mapproj, maps
Have I done something
2018 Apr 27
5
predict.glm returns different results for the same model
Hi all,
Very surprising (to me!) and mystifying result from predict.glm(): the
predictions vary depending on whether or not I use ns() or
splines::ns(). Reprex follows:
library(splines)
set.seed(12345)
dat <- data.frame(claim = rbinom(1000, 1, 0.5))
mns <- c(3.4, 3.6)
sds <- c(0.24, 0.35)
dat$wind <- exp(rnorm(nrow(dat), mean = mns[dat$claim + 1], sd =
sds[dat$claim + 1]))
dat <-
2007 Nov 08
1
ggplot2 facets as rows and columns
Does anyone (Hadley??) know if there's a straightforward
way in ggplot2 to get data divided by a single factor to
plot as a rectangular grid of subplots? So far I've only
been able to get such data plotted as a single row or
single column of skinny subplots. The code below gives
an example implemented with lattice, and my best
attempt in ggplot2
cheers
Ben Bolker
------------
g=