How to paint a complex function by ggplot2?

I`m trying to colour ribbon of complex functions. However, this does not go well (see the figure below): I want to paint only the lower part of the function. However, in this case, only the part connected by the vertices is painted, and the painte...
more »

2017-09-11 15:09 (1) Answers

R graph: label by group

The data I am working on is a clustering data, with multiple observations within one group, I generated a caterpillar plot and want labelling for each group(zipid), not every line, my current graph and code look like this: text = hosp_new[,c("zipi...
more »

2017-09-03 21:09 (1) Answers

Anti-aliasing for ggplot exports

Is it possible to get fine anti-aliasing for exported ggplot plots? I have tried the Cairo package as well as few different devices, but they all seems to have jagged edges. library(ggplot2) library(Cairo) p <- ggplot(data.frame(x=1:5,y=1:5),aes...
more »

2017-09-02 14:09 (1) Answers

Plotly flips ggplot2 boxplot

I want to plot boxplot using only summary statistics (INPUT is summary statistics for each ID). plot1 is what I want, but when I convert it to a plotly object something goes wrong (ie., plotly flips boxplot). However, if I plot boxplot the usual way ...
more »

2017-09-01 18:09 (0) Answers

Create choropleth map from coordinate points

I have a data frame consisting of multiple data points with specific geocoordinates (latitude and longitude). I'm looking to create a choropleth-style world map where geographical regions are shaded according to how many data points fall within the b...
more »

2017-08-26 03:08 (1) Answers

Aligning subsetted data points with ggplot2

I'm trying to build a complex figure that overlays individual data points on a boxplot to display both summary statistics as well as dispersion of the raw data. I have 2 questions in rank order of importance: How do I center the jittered points aro...
more »

2017-08-25 17:08 (1) Answers

ggpairs plot with heatmap of correlation values

My question is twofold; I have a ggpairs plot with the default upper = list(continuous = cor) and I would like to colour the tiles by correlation values (exactly like what ggcorr does). I have this: I would like the correlation values of the plot ...
more »

2017-08-25 04:08 (1) Answers

Excel graphics with ggplot2

My company wants to do reporting in R, they want to keep as much of the Excel report the same as possible. Is there a way in ggplot2 to keep the cheesy 3-D look one gets in Excel? I'm wanting to make a plot that looks like what is below: I've be...
more »

2017-08-24 15:08 (1) Answers

can python draw markers with a 3d effect?

Can Python, either using matplotlib or seaborn, draw markers with 3D effect? Or any other software can do this? (like ggplot in R or origin etc.) To explain my points, the following graphs are examples: The pink/red/black dots have a 3D effect...
more »

2017-08-23 23:08 (1) Answers

pass function arguments to both dplyr and ggplot

I'm confused about how to pass function argument into dplyr and ggplot codes. I'm using the newest version of dplyr and ggplot2 Here is my code to produce a barplot (clarity vs mean price) diamond.plot<- function (data, group, metric) { group...
more »

2017-08-01 15:08 (1) Answers

ggjoy facet with ggtree

Is it possible to add a joyplot as a panel to a plot that includes a ggtree, as shown in these examples? Examples of joyplots are here. I realize that I could manually put the species labels for the joyplot in the same order as the tree tip labels,...
more »

2017-07-29 03:07 (1) Answers