Hello, R friends,
I've got this graph:
p <- ggplot(diamonds, aes(x = color)) + scale_fill_brewer(type="seq", pal =
"Blues")
+ scale_y_continuous("",formatter="percent") + coord_flip()
p+geom_bar(aes(fill=cut),colour='black',position='fill')
Is it possible to place percentages within each f
It works! Thanks a lot for your explanations, Michael.
Good luck,
Mario
Von: R. Michael Weylandt
Cc: "r-help@r-project.org"
Gesendet: 5:22 Montag, 30.Januar 2012
Betreff: Re: [R] ColorBrewer question
I believe you need to use the scale_fill_brewer since fi
Thanks, Carlos,
your solution looks nice, however, there are 4 bars instead of 2 i.e. bars are
not stacked.
Meanwhile I got a solution for that task.
So thanks for sharing your version of it!
Good luck,
Mario
Von: Carlos Ortega
Cc: "r-help@r-project.org"
Hello, R friends,
I'm trying to change colors of my horizontal bars so that they show a sequence.
I chose the ColorBrewer palette "Blues". However the resulting plot doesn't
show any changes to the default.
I tried several places of "+ scale_colour_brewer(type="seq", pal = "Blues")"
with no eff
Hello, R friends,
I'm trying to crack this nut:
Example Data.
pet gender
dog male
dog female
dog male
cat female
cat female
cat male
Plot Task.
Horizontal 100% bars where
y axis shows gender factor (male vs. female)
and x axis shows percentage of kind of pets (dog vs. c
Hello, R-List,
I'm getting error messages when adding geom_density2d() [package ggplot2]:
Fehler in pretty(range(data$z), 10) :
NA/NaN/Inf in externem Funktionsaufruf (arg 1)
Zusätzlich: Warnmeldungen:
1: Removed 1
7;lm')
You could draw fit lines that make a bit more sense. Forgive me if I'm over
simplifying your problem!
Justin
On Thu, Jan 5, 2012 at 7:46 AM, Mario Giesel wrote:
Hello, R friends,
>
> I've been struggling quite a bit with ggplot2.
>Having worked through Hadleys
Hello, R friends,
I've been struggling quite a bit with ggplot2.
Having worked through Hadleys book twice I still wonder how to solve this task.
1. Short example Dataframe:
id city Likeability Uniqueness
1 Berlin 5 3
2 Munich 4 4
3 Berlin 6 4
4 Munich
Hello, list,
I've been struggling with this task for a while looking for an efficient way to
solve it:
There are two variables 'price' and 'mentioned'.
I want to 'enlarge' data so that missing price points within the price range
are added to variable price.
Also variable 'mentioned' is to recei
27; arg to plot does.
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 11/16/11 6:35 AM, "David Winsemius" wrote:
>
>On Nov 16, 2011, at 7:41 AM, Mario Giesel wrote:
>
>> Hello, list,
>>
>> I
Hello, list,
I'm new to R and I'm trying to produce a chart with currency values on the y
axis.
Values should be e.g. 1,00, 1,50, 2,00, etc.
In fact they are 1,0, 1,5, 2,0, etc.
How do I get R to show two digits after the comma on that axis?
Thanks for any help,
Mario
[[alternative H
11 matches
Mail list logo