search for: rcookbook

Displaying 10 results from an estimated 10 matches for "rcookbook".

Did you mean: cookbook
2012 Nov 05
1
Plot 3 lines in one graph
...ght", ex12, col = c("blue","green","red"), pch=1:3) I would like to make the lines extend so I can see the intersections. The other, fancier and better looking, option that i found is ggplot2. But for what I understand from the example<http://wiki.stdout.org/rcookbook/Graphs/Scatterplots%20(ggplot2)/>I would need to reshape my data to something like this id x y 1 1 -4800 25195.73 2 1 -2800 15195.733 2 -4800 7415.2194 2 -2800 5415.2195 3 -4800 7264.286 3 -2800 7264.28 Thanks a lot...
2011 Aug 24
1
Scatter plots, linear regression in ggplot2
Hi, Based on some modification that I did to the R Cookbook Graphs Scatterplots code, link:http://wiki.stdout.org/rcookbook/Graphs/Scatterplots%20(ggplot2) I have some questions and I will appreciate a help: - How do I change the legend title? - How can I change the for each linear regression its color and linetype? - How can I add for both the linear regression lines their equations and Rseq inside or below the plot?...
2013 Jan 21
1
Faceting in ggplot with 3 series in each plot
I have created a graph with basic R plot with 2 rows and 3 columns. With the basic plot feature of R I had to write several lines of code to come up with the graph https://www.dropbox.com/s/f7d6ei6krtcrtti/hello.png I was wondering whether we can plot multiple series in each plot using ggplot as created in the above link. If anyone could give me any suggestion then I could try on ggplot. I
2012 Sep 19
2
cambiar tamaño de letra de la leyenda con ggplot2
Hola a todos. Estoy realizando un gráfico con ggplot2, tal que así p <- ggplot(evolucion.alumnos, aes(x=CURSO, y=value, group=variable)) p + geom_line(aes(color=variable)) + labs(list(x="Curso", y="Alumnado extranjero", colour="Grupos Geopolíticos")) + opts(title='Evolución España') Y mi duda es que no encuentro en la ayuda cómo cambiar el tamaño del
2012 Feb 12
2
dotplots with error bars
Does anyone have any recommendations for producing dotplots with error bars? Are there packages available for this? I searched far and wide and cannot find a suitable option. I am trying to produce publication-quality figures for my thesis results. Dotplots (Cleveland dotplots) are a much better form of summarizing barchart-type data. It does not appear that any of the main plotting packages in r
2011 Oct 23
0
code review: is it too much to ask?
...# ========================================================================================= se <- function(x) sqrt(var(x)/length(x)) sst <- function(x) sum(x-mean(x))^2 ## ************************************ COPIED FROM ******************************************** ## http://wiki.stdout.org/rcookbook/Graphs/Plotting%20means%20and%20error%20bars%20%28ggplot2%29 ## ********************************************************************************************* ## Summarizes data. ## Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%). ## If there...
2012 Oct 03
5
error bars on line plot with error bars using ggplot
I'm new to this and struggling away with ggplot. I need to plot some line graphs for about 4 series. I have the values to plot and also the value of the standard error of the value. Is it possible to plot the standard error bars when the value are already calculated as opposed to letting R do the analysis to calculate the SE bars? Any simple example would be most appreciated. Thanks J
2012 Nov 08
1
A panel of contour plots through a iteration process
Dear all, as you can see from the code I want to create *a panel of 11 contour plots through a iteration process*. I found a thread that address the issue of plotting many contour.plots in the same device, but it does not address my problem! I emphasize that the 11 contour plots must be appeared in the same device through an iteration process and NOT individually! par(mfrow=c(4,3)) # I want them
2012 Jun 06
5
ggplot incorrect legend
How do I create a legend with ggplot? I think should be getting the FuelTypeNum in the legend. Plot: http://r.789695.n4.nabble.com/file/n4632471/Rplot.jpeg My code is: ggplot(data=tempTable, aes(x=Bands8, y=SubPercent, fill=FuelTypeNum)) + geom_bar(position="stack", stat="identity") + scale_colour_hue('my legend', breaks = levels(tempTable$FuelTypeNum),
2012 Oct 19
5
RColorBrewer
Hi there everyone! So I'm a student in college, taking a very basic Statistics course. We're using R for most of our assignments. I've hit a pretty big wall here. I'm attempting to create a heat map of the entire united states which corresponds to a set of percentages I have for each state. My teacher suggested that I simply create a color palette with RColorBrewer that is in the