Re: [R] ggplot2: ordering categorial data

2007-10-15 Thread Christoph Krammer
ot;Error in as.vector(x, "double") : can not convert to vector" Can anybody help here? Thanks and regards, Christoph -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Krammer Sent: Sunday, October 14, 2007 11:30 AM To: r-help@r-pro

[R] ggplot2: ordering categorial data

2007-10-14 Thread Christoph Krammer
Hello again, everytime I think I got something to work, the next issue comes up... I have the following data.frame, I want to visualize: > data_rb tld spam1 spam2 share 1 ca 826436 73452 0.0889 2 org 470550 25740 0.0547 3 de 156042 15531 0.0995 4 com 140753 7527 0.

[R] Axis value as percentage

2007-10-11 Thread Christoph Krammer
Hello, I am using ggplot2 to display some distributions, I my data, there are percentages represented as 0.10, 0.13, ... I now want to do the axis show "5%", "10%", "15%", ... Is there is simple way to do this? I tried to use scale_y_prob(), but I didn't get through it. Thanks and regards, Chr

[R] Setting qplot default options

2007-10-10 Thread Christoph Krammer
Hello, is there a possibility to set default options to qplot? I need to draw a lot of graphs and would like to have all of them as point plot but with a greater size and a fixed color for all dots. Thanks for help. Christoph __ R-help@r-project.org

[R] Specify plot size

2007-10-08 Thread Christoph Krammer
Hello, I have another (possibly easy) question: How to specify the size of a plot? When I draw a plot, I can freely change the size of the window, which is nice for single plots to find the best height/width ratio, but as I need a lot of plots in my work, I want to look them all the same, so I ne

Re: [R] How to remove legend?

2007-10-08 Thread Christoph Krammer
stoph -Original Message- From: ONKELINX, Thierry [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 1:47 PM To: Christoph Krammer; r-help@r-project.org Subject: RE: [R] How to remove legend? Try somelike this library(ggplot2) dow <- data.frame(dayofweek = factor(1:7), p = runif(7

[R] How to remove legend?

2007-10-08 Thread Christoph Krammer
Hello, I want to do some simple bar plots on email arrival data, but I do not quite get the point how to remove the legend. I use the following code: > dow <- read.csv(file="j:/uni_lernen/da_stockspam/svn/data/c411_weekday.txt", header=TRUE) > dow$dayofweek <- factor(dow$dayofweek) > days <- c("S