>
>
> 2- If this true,how can i change the given scale to
> (0.01,0.03,0.05,0.07,0.09)?
If you want to change the axis tickmarks you can buildt your plot with
yaxt="n" and then add an axis with what you want, e.g.
axis(side=2,at=c(0.01,0.03,0.05,0.07,0.09),cex.axis=1,las=2)
Hope this helps. If n
This is a very basic question. I am just wondering if there is a function
where i can choose a vector of points, and them helper lines are drawn.
I am asking because lines seams to be a cumbersome way to do this.
E.g.
x <- 1:36
plot(log(x,1.1),xlab="Number of months", ylab="Visits(1000)",main="we
ray66", "gray69", "gray73", "gray76", "gray80", "gray83",
"gray87", "gray90", "gray0", "gray3", "gray7", "gray10", "gray14",
"gray17", "gray21", "g
Hi,
In the example dataset below - how can I cahnge "gray20", to "blue"
# data
black <- rep(c("black","red"),10)
gray <- rep(c("gray10","gray20"),10)
black_gray <- data.frame(black,gray)
# none of this desperate things works
# replace(black_gray$gray, gray=="gray20","red")
# if(black_gray$gray==
I really dont know hot to use it - but have a look at ?source
On Mon, May 11, 2009 at 10:37 PM, Mark Na wrote:
> Hi R-helpers,
>
> I would like to read into R all the .csv files that are in my working
> directory, without having to use a read.csv statement for each file.
>
> Each .csv would be r
Maybe pairs.panels(df,scale=T) from the psych library - se more here:
http://www.personality-project.org/r/html/00.psych-package.html
setting scale=T scales the cor coefficient according to their value. I
have seen an implementation with added asterix' but couldn't find it
right now.
On Sun, May
ician after the experiment is done may be no more than
> asking him to perform a post-mortem examination: he may be able to say what
> the experiment died of.
> ~ Sir Ronald Aylmer Fisher
>
> The plural of anecdote is not data.
> ~ Roger Brinner
>
> The combination of some data an
On Thu, May 7, 2009 at 2:15 AM, Mike Lawrence wrote:
> (cross posting to the ggplot2 group for posterity)
>
> Here's how I'd approach it:
>
> library(ggplot2)
> text = letters[1:20]
> tal1 = rnorm (20,5,2)
> tal2 = rnorm (20,6,3)
> dif = tal2-tal1
> df0 = data.frame(text,tal1,tal2)
> df = melt(
>
lue,data=df) - returns an error.
# Hot to use melt better - so that text becomes the id? id=text doesn't work.
thanks in advance
On Tue, Apr 28, 2009 at 12:09 AM, Andreas Christoffersen
wrote:
>
> My legend is removed! - Couldn't find it in your ggplot2 book - but
> here it is. B
>> Is there no simple way to just: legend=F ?
>
> + opts(legend.position = "none")
>
> Hadley
My legend is removed! - Couldn't find it in your ggplot2 book - but
here it is. Brilliant - thank you very much.
__
R-help@r-project.org mailing list
https://s
ot;,
geom = "line", group = Lande,col=Lande) + sc +
geom_text(aes(label = Lande), subset(data,year == 1990),
hjust = 0.5,vjust=0, size = 3, lineheight = 1)
doesnot work. Is there no simple way to just: legend=F ?
On Mon, Apr 27, 2009 at 8:53 PM, Andreas Christoffersen
wrote:
>
> Or just add the text layer separately:
>
> qplot(year, value, data = data, geom = "line", group = countries) +
> geom_text(aes(label = countries), subset = .(year == 1990),
> hjust = 1, size = 3, lineheight = 1)
THX a lot!
The subset did not work for me, but this does:
subset(data,year == 19
> Hi Andreas,
> Not too hard. Try this:
Amazing! - a bump.plot function - so cool. I love it when I
simultaneously realize the power of R and my own limitations with R. I
must learn how to write my own functions (suggestions for good
introduction are very welcome)
But: When I run the following
bu
thank you kindly - will do :-)
Cheers
On Mon, Apr 27, 2009 at 1:21 AM, Gabor Grothendieck
wrote:
> Have a look at plotweb in the bipartite package.
>
> On Sun, Apr 26, 2009 at 6:45 PM, Andreas Christoffersen
> wrote:
>> Hi there,
>>
>> I would like to make
On Mon, Apr 27, 2009 at 2:23 AM, Mike Lawrence wrote:
> Here's a ggplot2 based solution:
Wauw - thank you. I'm sure I need to understand gplot better. With
qplot I can make something similar - quite easy.
With your reformattet data:
#here's the data provided by Andreas
countries <- c("U-lande",
> In statistics, a bumps chart is more commonly called a parallel
> coordinates plot.
Thank you. However - my understanding of the parallel coordinates plot
is that you have factors, not time, on the x axis. Also the 'bump
chart' i invision is best suited for only two different x categories.
But t
Hi there,
I would like to make a 'bumps chart' like the ones described e.g.
here: http://junkcharts.typepad.com/junk_charts/bumps_chart/
Purpose: I'd like to plot the proportion of people in select countries
living for less then one USD pr day in 1994 and 2004 respectively. I
have already constru
David, you solution
> qplot(ind, values, data=stack(data.frame(a,b,c)), geom="boxplot")
Works a treat - thank you!
Thierry, your solution
> ds <- data.frame(a = a, b = b, c = c)
> library(ggplot2) # loads qqplot2
> ggplot(melt(ds), aes(x = variable, y = value)) + geom_boxplot()
Also works.
I can
Hi,
ggplot/qplot is great - it has really helped me do some nice things.
However, simple boxplot of different columns/variables is a bit
tricky, because of (i think) qplot's generic Y conditional on X input
form. Se below.
# Some data:
a <- rnorm(100)
b <- rnorm(100,1,2)
c <- rnorm(100,2,0.5)
# n
>
>
> I'd recommend to use this script instead. It uses screen to
> communicate R and vim, it works well.
> http://www.vim.org/scripts/script.php?script_id=2551
>
> Best,
> - -Jose
>
> - --
> Jose Quesada, PhD.
> Max Planck Institute,
> Center for Adaptive Behavior and cognition,
> Berlin
> http://
20 matches
Mail list logo