Displaying 20 results from an estimated 500 matches similar to: "Error message when executing summary() with dataset diamonds in ggplot2"
2009 Jan 24
2
ggplot2 - how to change location / position of wind rose axis labels?
Dear R users,
First just want to say thank you to all for developing such a wonderful
software and packages.
I need to produce a wind rose plot. Tried with packages circular and plotrix
and couldn't quite get what I want. Moved to package ggplot2 and it's going
great. However stuck in how to move axis labels.
I am using the wind rose from the help to learn how to do what I need (code
2009 Feb 10
1
need help with installRExcel()
Struggled a whole day, but still could not get DCOM working on my machine.
What I did is:
1. Installed R 2.8.1 under folder "../R/R-2.8.1"
2. Installed R_Scilab_DCOM3.0-1B5 under folder ".. \R\(D)COM Server"
3. Installed packages: rscproxy_1.0-12, RExcelInstaller_3.0-10,
rcom_2.0-4...
4. run the following commands:
library(rscproxy)
library(rcom)
2012 Mar 26
1
Year of data collection for 'diamonds' dataset in ggplot2
Hello,
I'm wondering what was the year (or year range) of collection for the
data included in the 'diamonds' dataset in ggplot2.
This information would be very helpful in interpreting the 'price' variable.
Thank you!
Marina Doucerain
2017 Jan 10
2
[PATCHish] IfConversion; lost edges for some diamonds
On Tue, Jan 10, 2017 at 2:31 AM, Peter A Jonsson <pj at sics.se> wrote:
> Hi Kyle,
>
> my apologies for mailing you directly but it seems new user creation is
> disabled on the llvm bugzilla.
>
> We sometime lose edges during IfConversion of diamonds and it’s not
> obvious how to reproduce on an upstream target. The documentation for
> HasFallThrough says *may*
2009 Jul 21
1
error when installing rjags
Hi All: I get the following error when trying to install the rjags package.
I've installed the
jags software and I'm using Fedora 10.0 and my sessionInfo is at the bottom
of this email.
I'm also sorry if this email ends up having control A's all over it. I still
haven't figured how to fix that. Thanks.
[1] "LOADING MASS LIBRARY"
checking for
2010 Oct 02
1
Deducer and Contingency Tables
Is there a way to use Deducer to analyze contingency table data that is only
available in a row-by-column summary form (not a data frame)?
Thanks. Jim Watkins
2008 Dec 29
1
Trouble installing plyr
I want to learn how to use the reshape package. The reshape package is
not included in the Ubuntu repositories, so I attempted to install
reshape with:
install.packages("reshape")
This is what I got for output:
Warning in install.packages("reshape") :
argument 'lib' is missing: using
'/home/andy/R/i486-pc-linux-gnu-library/2.7'
2009 Apr 10
1
png with ggplot on windows xp
Hi Group,
I posted this question on the ggplot list and was advised to try here
also. The code
below produces a plot as a png and pdf. The pdf looks great, and I cannot
make the png look this way. I've tried various combinations of
height, width, and dpi, but it has not worked out so
far. Any suggestions to make the png look like the pdf? I received a
response that
the problem does not occur
2009 Feb 26
1
bottom legends in ggplot2 ?
Has anyone had success with producing legends to a qplot graph such that the legend is placed on the bottom, under the abcissa rather than to the right hand side ?
The following doesn't move the legend:
library(ggplot2)
qplot(mpg, wt, data=mtcars, colour=cyl, gpar(legend.position="bottom") )
I am using ggplot2_0.8.2.
Thanks in advance,
Avram
2009 Mar 09
3
Creating an Excel file with multiple spreadsheets
DeaR all,
I'd like to know how to create an Excel file with multiple spreadsheets from
R. I searched the help files and found [1] but it is not what I want to do.
Let's say I have a data frame called DF as in the following code
# Some data
set.seed(123)
ID<-sample(5,100,replace=TRUE)
X<-rnorm(100)
Y<-rpois(100,10)
Z<-X*Y
DF<-data.frame(ID,X,Y,Z)
str(DF)
I'd like to
2003 Aug 21
3
Diamond graphs
I apologise for starting a new thread, but we had a mail problem and I
don't have the original message to refer to.
Someone mentioned the new "Diamond Graphs" invented at Johns Hopkins.
I haven't see the August 2003 issue of The American Statistician yet,
but I _have_ read the press release.
The press release is a bit of a stunner. I quote:
"Who would have thought we
2008 Nov 24
0
[R] besselK
[cc'ing to R-devel]
It's moderately obscure to me too, but ...
There are two sets of bessel code in the package, one
in C++ from Chris Bond and the other in FORTRAN from Netlib
(I think). The FORTRAN code is the one that's giving trouble,
you might try just removing the FORTRAN code from the src
directory and trying again.
2018 Feb 08
2
sparse.model.matrix Generates Non-Existent Factor Levels if Ord.factor Columns Present
Good day,
Sometimes, sparse.model.matrix outputs a dgCMatrix which has column names consisting of factor levels that were not in the original dataset. The first factor appears to be correctly transformed, but the following factors don't. For example:
diamonds <- as.data.frame(ggplot2::diamonds)
> colnames(sparse.model.matrix(~ . -1, diamonds))
[1] "carat"
2018 Feb 08
0
sparse.model.matrix Generates Non-Existent Factor Levels if Ord.factor Columns Present
color and clarity are ordered factors, so sparse.model.matrix is
generating orthogonal-polynomial contrasts (see ?contr.poly). This is
by design ... what are you trying to do? Are you interested in fac2sparse?
On 18-02-07 11:00 PM, Dario Strbenac wrote:
> Good day,
>
> Sometimes, sparse.model.matrix outputs a dgCMatrix which has column names consisting of factor levels that were not
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 <-
2011 Jun 01
1
Plotting from functions
I can plot to png's fine when i run this directly from the top-level
script/console:
png('diamonds.png');qplot(carat,price,data=diamonds);dev.off()
But for some reason it's not working when that's in a function:
(function(){png('diamonds.png');qplot(carat,price,data=diamonds);dev.off()})()
I suspect this is because the qplot's return value must be
2023 Nov 28
0
possible LVM corruption?
While updating a hypervisor, I'm getting the following errors printed to
the terminal during rpm upgrade scripts.? The first line is printed 15
times, and GRUB prints a similar error at boot.? "vgck" doesn't seem to
find any problems.? Does anyone have suggestions for diagnosing the issue?
error: ../grub-core/disk/diskfilter.c:524:unknown node
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
2008 Mar 04
1
ggplot2 - Problem with grid plot
Hi R-help
I'm trying to create a grid plot in which each plot in the grid contains two
density plots (colored by factor) and two vertical lines at the respective
medians (also colored by the factor).
Using the diamonds dataset as an example, the following commands give me
price density plots by factor cut in a single, ungridded plot.
p <- ggplot(data=diamonds, aes(x=price)) +