search for: show_guide

Displaying 4 results from an estimated 4 matches for "show_guide".

2012 Dec 12
1
Problems with plot maps
...e such code: library("ggplot2") library(cshapes) cshp.data <- cshp() map <- cshp.data[cshp.data$COWCODE==369,] map_mp<- list( geom_polygon(aes(long, lat, group = group), data = map, fill = "grey70", colour = "grey60", inherit.aes = FALSE, show_guide = FALSE), scale_x_continuous("", breaks = NULL, expand = c(0.02, 0)), scale_y_continuous("", breaks = NULL, expand = c(0.02, 0))) ggplot()+map_mp but I have such error "Error in recordGraphics(drawGTree(x), list(x = x), getNamespace("grid")) : invalid...
2016 Apr 09
1
Run script R
...nceFromSource = data$NodeId * data$Distance data = subset(data, Distance %in% c(10, 50, 90, 130, 170))data$Distance = as.factor(data$Distance) g <- ggplot(data, aes(x=Time-2, y=DistanceFromSource, colour=Distance, linetype=Distance)) +? geom_line (aes(group=paste(Distance, Run, fill=Distance)), show_guide=FALSE, size=0.2) + ? ## stat_summary(aes(group=Distance, colour=Distance), fun.y="mean", geom="line", size = 2) +? ## geom_line (aes(group=Distance, y=mean(DistanceFromSource/1000))) +? geom_smooth (aes(fill=Distance), show_guide=TRUE, method="lm", colour='black...
2012 Jul 03
2
ggplot2: legend
...shape="Observations")) + stat_summary(aes(colour = "Means", shape ="Means"), fun.y = mean, fun.ymin = min, fun.ymax = max, geom = "point") + geom_hline(aes(yintercept = mean(y), linetype = "Overall Mean"), show_guide = TRUE) I tried to map the linetype in geom_point (and stat_summary) to NULL and I tried to set it to "blank" but neither worked. Is it furthermore possible to combine the two legends? My preferred plot would have two symbols with different colours and shapes for "Means" and &...
2013 Jan 24
1
Insert segment only on particular facets in ggplot
...row=arrow(length=unit(0.2,"cm"))) ### This is what I did to show text annotation on the bottom panel ann_text <- data.frame(x=c(340,390),y=c(3,3),id=c("orange"),label=c("2008","2009")) p1 <- p1 + geom_text(data=ann_text,aes(x=x,y=y,label=label,size=3),show_guide=F) p1 Now, I want to add the arrows and segment based on the overall graph. My data is attached along. My output is also attached : The output shows the annotation I want but it is on all the facets. I want only on the bottom one. Thank you so much. Regards, Janesh Devkota -------------- nex...