ggproto Questions

3

Solved

As part of an effort to remove a specific geom from a plot I've already created (SO link here), I'd like to dynamically determine the geom type of each layer of a ggplot2 object. Assuming I don't ...
Volumetric asked 19/11, 2012 at 16:3

3

I'm trying to use ggplot2 / geom_boxplot to produce a boxplot where the whiskers are defined as the 5 and 95th percentile instead of 0.25 - 1.5 IQR / 0.75 + IQR and outliers from those new whiskers...
Mountainous asked 22/1, 2011 at 1:9

3

Is there some way to use a specific small image as a point in a scatterplot with ggplot2. Ideally I will want to resize the images based on an variable. Here's an example: library(ggplot2) p <...
Stogner asked 2/2, 2010 at 4:31

0

I would like to implement diagnostics for Cox proportional hazards model with ggplot2, by creating new stats functions and ggproto objects. The idea is to benefit from grouping (by color, facet_gri...
Whinny asked 20/3, 2017 at 21:51

1

I am trying to create a new geom that will create a wind radii chart from hurricane data. The data needed to run this came be generated from the following: storm_observation <- data_frame(long...
Ulrika asked 31/1, 2017 at 19:58

4

I'm using ggmap, and got the error below: Error: GeomRasterAnn was built with an incompatible version of ggproto. Please reinstall the package that provides this extension. I've installed the la...
Whitening asked 16/11, 2016 at 21:40

2

Solved

Is it possible to display custom image (say png format) as geom_point in R ggplot? library(png) pic1 <- readPNG("pic1.png") png("Heatmap.png", units="px", width=3200, height=3200, res=3...
Disorder asked 24/12, 2014 at 13:10

1

Solved

When I run the code from the accepted answer (Plot coordinates on map), I get the following error message on the first run after installing ggmap: # loading the required packages library(ggplot2)...
Amazonite asked 17/1, 2017 at 2:42

2

Solved

I've found the dplyr %>% operator helpful with simple ggplot2 transformations (without resorting to ggproto, which is required for ggplot2 extensions), e.g. library(ggplot2) library(scales) lib...
Ignacia asked 4/8, 2016 at 18:57

1

Solved

I am having a little trouble with my radar chart in R. Even though the plot is fine I am getting the following warning: > source('~/.active-rstudio-document') Warning message: In `levels<-`(...
Pinochle asked 13/8, 2016 at 9:16

1

Solved

I've been working on a radar plot recently and found a great bit of code on from Erwan Le Pennec. I've made a few edits, however there are some parts I couldn't work out how to remove the outermost...
Oops asked 12/4, 2016 at 17:6

2

Solved

This is actually two questions in one (not sure if goes against SO rules, but anyway). First question is how can I force a geom_text to fit within a geom_bar? (dynamically according to the values ...
Phantasm asked 30/3, 2016 at 20:37

1

Solved

I've been reading the vignette on extending ggplot2, but I'm a bit stuck on how I can make a single geom that can add multiple geometries to the plot. Multiple geometries already exist in ggplot2 g...
Ausgleich asked 22/3, 2016 at 13:57

2

Solved

I know that in ggplot2 one can add the convex hull to a scatterplot by group as in library(ggplot2) library(plyr) data(iris) df<-iris find_hull <- function(df) df[chull(df$Sepal.Length, df$S...
Kwei asked 8/8, 2015 at 13:21

1

Solved

I'm often using boxplots in my work and like ggplot2 aesthetics. But standard geom_boxplot lacks two things important for me: ends of whiskers and median labels. Thanks to information from here I'v...
Loreeloreen asked 19/1, 2016 at 12:20

1

Solved

I am following up a discussion started at: How can I make geom_area() leave a gap for missing values?. It seems like geom_ribbon is not longer leaving gaps for missing values. Please try to execute...
Bearcat asked 17/2, 2016 at 10:38

2

Solved

I try to use the new functionality of ggplot2 in R that allows creating our own stat_ functions. I'm creating a simple one to compute and plot an interpolated surface between points arranged on a 2...
Piteous asked 8/1, 2016 at 15:43

2

Solved

I have been stuck with this for hours. When I run this : library(ggmap) set.seed(1) n=100 df <- data.frame(x=rnorm(n, 0, 1), y=rnorm(n, 0, 1)) TestData <- ggplot (data = df) + stat_densit...
Decapod asked 22/12, 2015 at 7:58

© 2022 - 2024 — McMap. All rights reserved.