Re: [R] ColorBrewer question

2012-01-30 Thread Mario Giesel
It works! Thanks a lot for your explanations, Michael.   Good luck,  Mario Von: R. Michael Weylandt michael.weyla...@gmail.com Cc: r-help@r-project.org r-help@r-project.org Gesendet: 5:22 Montag, 30.Januar 2012 Betreff: Re: [R] ColorBrewer question I believe

[R] Displaying percentages within bars

2012-01-30 Thread Mario Giesel
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 field of

[R] ColorBrewer question

2012-01-29 Thread Mario Giesel
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 effect.

Re: [R] Horizontal stacked 100% bars with ggplot2

2012-01-29 Thread Mario Giesel
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 c...@qualityexcellence.es

[R] Horizontal stacked 100% bars with ggplot2

2012-01-27 Thread Mario Giesel
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.

[R] pretty(range(data$z),10) Error

2012-01-17 Thread Mario Giesel
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

[R] Reply on ggplot2 - tricky problem

2012-01-06 Thread Mario Giesel
more sense.  Forgive me if I'm over simplifying your problem! Justin On Thu, Jan 5, 2012 at 7:46 AM, Mario Giesel rr.gie...@yahoo.de wrote: 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

[R] ggplot2 - tricky problem

2012-01-05 Thread Mario Giesel
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   

[R] Filling a variable with unmentioned categories

2011-11-18 Thread Mario Giesel
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

Re: [R] Numerical Format on axis

2011-11-17 Thread Mario Giesel
. -- 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 dwinsem...@comcast.net wrote: On Nov 16, 2011, at 7:41 AM, Mario Giesel wrote: Hello, list,   I'm new to R and I'm trying to produce a chart

[R] Numerical Format on axis

2011-11-16 Thread Mario Giesel
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