aesthetics Questions
2
Solved
For the data:
def.percent period valence
1 6.4827843 1984-1985 neg
2 5.8232425 1985-1986 neg
3 -2.4003260 1986-1987 pos
4 -3.5994399 1987-1988 pos
If I add a line to the points, how can I use g...
Lowry asked 25/2, 2015 at 21:35
8
Solved
How can I can remove the letter 'a' from the legend generated by this code? If I remove the geom_text, then the 'a' letter will not show in the legend. I want to keep geom_text, though.
ggplot(data...
Offoffbroadway asked 20/8, 2013 at 14:29
5
Solved
I would like to make a plot with X values as a subset of the measurement and Y-values as another subset of the measured data.
In the example as below, I have 4 products p1, p2, p3 and p4. Each are...
Sandhurst asked 18/11, 2013 at 20:41
4
Solved
Given the data frame below:
import pandas as pd
df = pd.DataFrame({
"n_index": list(range(5)) * 2,
"logic": [True] * 5 + [False] * 5,
"value": list(range(5)) + list(range(5, 10))
})
I'd like ...
Ivey asked 18/9, 2018 at 11:19
2
Solved
I made a scatterplot with ggplot2 and I mapped a binary variable to point size. The result was satisfactory but I got the warning "Using size for a discrete variable is not advised".
I un...
Interact asked 7/5, 2018 at 10:5
3
Solved
I've been using style sheets in matplotlib lately. I really like how clean the seaborn-white looks and I want to be able to add the border to other styles like ggplot or seaborn-whitegrid.
How can...
Town asked 6/4, 2017 at 21:4
0
I am trying to plot the plot the data of three constituents on the same plot using ggplot. Specifically, I am trying to get a stacked line/area plot that represents the data distribution. The three...
Tasman asked 28/2, 2019 at 0:48
1
Solved
I'm plotting multiple lines together and they are transparent. However, I do not want the legend color to have any transparency. I attempted the override.aes but without success.
This is similar to...
Carey asked 7/2, 2019 at 18:43
2
I'll skip right to an example and comment afterwords:
cont <- data.frame(value = c(1:20),variable = c(1:20,(1:20)^1.5,(1:20)^2),group=rep(c(1,2,3),each=20))
value variable group
1 1 1.000000 ...
Salzhauer asked 4/12, 2015 at 20:46
2
Solved
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 th...
Danner asked 25/8, 2017 at 2:21
2
Solved
[Data and code to produce plot at the end of the post]
Using ggplot, I plotted a bargraph with error bars, bars are grouped by two factors (one on X axis, one with fill). I would like to increase ...
Adulterer asked 17/8, 2018 at 9:57
1
Solved
I would like to change the colour of one of my ggrepel labels to black. I have tried to override the inheritance by specifying ...geom_text_repel(...colour='black') but that doesn't seem to work.
...
Hindu asked 3/4, 2018 at 5:27
1
Solved
I want to add a legend to one of my plots, but I have different aesthetics and I never created a legend so I find it very difficult to determine how to build it.
One of my aesthetics is a fill co...
Floccule asked 16/10, 2017 at 7:10
1
Solved
I am having trouble making the legend of the following ggplot wrapped in ggplotly() show only one aesthetic. It currently shows three variables (shape, color, linetype) for each legend entry, but I...
Circularize asked 24/7, 2017 at 18:3
1
Solved
I want to compare some sub-groups of my data in one plot and some other sub-groups in another plot. If I make one plot with all sub-groups plotted, the figure is overwhelming and each individual co...
Profiterole asked 19/3, 2017 at 19:39
1
Solved
I want to remove the color line from a fill legend for a ggplot. I usually use guide_legend(override.aes = ...) to modify legend aesthetics - works great for points, lines, alpha, etc., but it's no...
Chromate asked 13/11, 2015 at 23:37
1
Solved
With missing background in informatics I have difficulties to understand the differences between aes and aes_string in ggplot2 and its implications for daily usage.
From the description (?aes_stri...
Oppress asked 6/3, 2015 at 11:11
1
Does anyone know how to change the legend and the title in seaborn? See the below. I kind of want to change the name "Gaussia" to "Guassian Naive Bayes" etc...
or the legend in the second image
Mcnally asked 16/7, 2014 at 20:5
2
Solved
Let's say that I would prefer geom_point to use circles (pch=1) instead of solid dots (pch=16) by default. You can change the shape of the markers by passing a shape argument to geom_point, e.g.
g...
Itself asked 7/1, 2013 at 13:17
2
Solved
I am trying to do some analysis of the recent MLB draft with some ggplots in R
selection <- draft[c("Team","Division","Position")]
head(selection)
Team Division Position
1 pit NL Central P
2 ...
Cuttler asked 9/6, 2011 at 18:44
1
© 2022 - 2024 — McMap. All rights reserved.