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=webpage
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 not
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)
#
- data.frame(black, gray, stringsAsFactors = FALSE)
Try this to view what you've got:
str(black_gray)
On Sun, May 24, 2009 at 7:15 AM, Andreas Christoffersen
achristoffer...@gmail.com wrote:
Hi,
In the example dataset below - how can I cahnge gray20, to blue
# data
black - rep(c(black
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 mtb...@gmail.com 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
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
On Thu, May 7, 2009 at 2:15 AM, Mike Lawrence mike.lawre...@dal.ca 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
-help-boun...@r-project.org]
Namens Andreas Christoffersen
Verzonden: donderdag 7 mei 2009 12:22
Aan: Mike Lawrence; r-help@r-project.org; ggpl...@googlegroups.com
Onderwerp: Re: [R] Bumps chart in R
On Thu, May 7, 2009 at 2:15 AM, Mike Lawrence mike.lawre...@dal.ca wrote:
(cross posting
in advance
On Tue, Apr 28, 2009 at 12:09 AM, Andreas Christoffersen
achristoffer...@gmail.com wrote:
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
thank you kindly - will do :-)
Cheers
On Mon, Apr 27, 2009 at 1:21 AM, Gabor Grothendieck
ggrothendi...@gmail.com wrote:
Have a look at plotweb in the bipartite package.
On Sun, Apr 26, 2009 at 6:45 PM, Andreas Christoffersen
achristoffer...@gmail.com wrote:
Hi there,
I would like to make
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
On Mon, Apr 27, 2009 at 2:23 AM, Mike Lawrence mike.lawre...@dal.ca 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
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
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 == 1990)
,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
achristoffer...@gmail.com wrote:
Or just add the text layer
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
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
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)
#
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 even
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
20 matches
Mail list logo