Aes, short for "aesthetics" is an R Library, used to "Generate aesthetic mappings that describe how variables in the data are mapped to visual properties (aesthetics) of geoms." The aesthetics tag should **not** be used to reference software's artistic merit.
Questions tagged [aesthetics]
210 questions
0
votes
1 answer
How can I resolve this error and generate a bar chart?: Error in check_aesthetics(evaled, n)
I'm familiarizing myself with tidyverse. Able to produce a barchart with the default barchart(), but I'm running into issues with this. All objects are of equal length and I'm not sure what exact mistake I'm making within aoe(). Thank you in…
0
votes
1 answer
Mapping aesthetics ( color fill and intervals )
I am doing a map of the united states , but I wanted to change the color of the states fill , however when I try to do it it only changes the colors of the lines between the states and not the state :(
Can anyone tell me how to change the color…

sikimimi
- 1
- 2
0
votes
0 answers
R error in geom(line): Aesthetics must be either length 1 or the same as the data (2296) ✖ Fix the following mappings: `y
My code
For a university course i have to plot the inferred excess mortality up until 2019 and as of 2020. However, when running my code it keeps saying i have an aes error: Error in geom_line():
! Problem while computing aesthetics.
ℹ Error…

Alexander Hill
- 11
- 1
- 3
0
votes
1 answer
match color, line type AND shape in a SINGLE legend ggplot2
I'm struggling with changing a regression aes with ggplot2. In the plot below, how can I match the legends, colors, line types AND shapes according to TYPE?
I have this plot:
the code is:
data %>%
# filter(!is.na(IND_TEST_SCORE) &…

Larissa Cury
- 806
- 2
- 11
0
votes
1 answer
Adding space between geom_pointrange()
I just can't figure out how to add space between two geom_pointrange(s)().
Can anyone give me a hint?
Thanks.
0
votes
0 answers
ggplot does not plot the `fill` colours specified in `aes`
I'm confused why below code doesn't work. ggplot help for aes or fill or geom_density say that a) geom_density understands the fill aesthetic and b) that fill can be a colour constant from the R color palette. So what am I missing?
data.frame(x =…

deschen
- 10,012
- 3
- 27
- 50
0
votes
1 answer
How to clean up numbered labels on the bar graph
I was wondering how I could go about cleaning up the numbers on the graph. Attached is a sample dataframe with the code. The actual database is 1300 entries. Ill be cleaning up the NAs and misc entries. But I would like to keep the total numbers and…

Corrin Winter
- 81
- 5
0
votes
0 answers
facing Error in `check_aesthetics()`: ! Aesthetics must be either length 1 or the same as the data (3474): x
my code:
bike <- read.csv('bikeshare.csv',sep=',')
library(ggplot2)
library(plotly)
library(dplyr)
pl2 <- ggplot(filter(bike,workingday == 0), aes(hour,count))
pl2 <- pl2+ geom_point()
pl2 <- pl2 +…
0
votes
1 answer
Map Details in R
I have a two-part question:
I am struggling to figure out how to make the Northeast United States' abbreviations on my map smaller so they actually fit in the state boundaries, or if I could make those lines that point to the state. My apologies, I…

Sabrina M
- 1
- 1
0
votes
1 answer
Join lines of different aesthetics in ggplot2
I'm trying to solve the following problem: how to join lines of different aesthetics/groups in ggplot and maintain the color of a certain group. It is best to see the examples below for a better understanding of what I mean.
Consider the following…

Rafolks
- 69
- 1
- 6
0
votes
1 answer
Specifying fill color independent of mapping aesthetics in boxplot (R ggplot)
I have a lot of categorical variables that are going into a single graph, which is split on a particular status. Something like this, but with many more groups
dat <- as.data.table(cbind(iris, Status = rep(c("High", "Low"), 75)))
dat <- rbind(dat,…

HarD
- 183
- 9
0
votes
0 answers
How do you color the 3 bars with the highest value differently (gold, silver, bronze) from the rest in ggplot?
I am currently working on an R Markdown document for our school, which should make documenting student performance easier for the teachers.
I would like to include a bar chart using ggplot2, which
orders students from best to worst based on their…

Bálint L. Tóth
- 163
- 6
0
votes
2 answers
Box plot representing the wrong aesthetics
I have the following data
structure(list(imaging_date = structure(c(19010, 19010, 19024,
19024, 19010, 19024, 19010, 19024, 19010, 19024, 19010, 19024,
19010, 19010, 19024, 19010, 19010, 19010, 19024, 19024, 19024,
19010, 19010, 19010, 19024,…

Our
- 986
- 12
- 22
0
votes
1 answer
Customize legend labels barchart
I'm currently working on a sales dataset, and I have been trying to make a barchart, showcasing the units sold by each country, with the colouring of the charts being the number of inhabitants in each country.
so far I have used the following code…
0
votes
1 answer
Ploting and understanding face_wrap and multiplevariable graphs - ggplot
I am a newbie on graphs and r and I got the exercise to analyse a dataset. I am willing to do a graph (facet_wrap?) from it, where I show the distribution of profits per month from different countries.
I have a subset with 19 Countries, 12 Months…

lkasquilici
- 45
- 7