Questions tagged [aesthetics]

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.

210 questions
0
votes
2 answers

Stacked Bar Chat (ggplot) in R:: Trying to create more than one bar in the chart

I am currently trying to create a stacked bar chart based on the dataset below: Explanation of data: Every odd column represents the company variable and every even column represents the production by that company. Every two columns(the company…
0
votes
1 answer

mode con: cols=xx lines=xx aesthetics 16:9 ratio

I want to create a window in CMD so that it has a ratio of 16:9. Just like 1080p or 720p's ratio. Does anyone have a generator or a formula I could use? Thank you and I know it's just aesthetics, but I still care No Judge Zone. the code below is…
Brett Nelson
  • 113
  • 3
  • 19
0
votes
2 answers

Multiple plots using ggplot: Error in printing plot

In trying to answer this question: Compare emissions from motor vehicle sources in Baltimore City with emissions from motor vehicle sources in Los Angeles County, California (fips == "06037"). Which city has seen greater changes over time in motor…
Ganesh Bhat
  • 295
  • 7
  • 20
0
votes
1 answer

Error with aesthetics control

I've got the dataframe pGi.Fi <- data.frame( Metadata_Well = c("D01", "F01"), Freq = c("0.3789279","0.4191564"), control = c("Scramble2","Scramble2")) a vector for confidence interval CI <- c(0.03222640,0.03196117) and this code for…
CHK
  • 75
  • 8
0
votes
1 answer

aesthetic mapping in ggplot inside loop

I was trying to plot multiple time-series continuous variables in a single plot using ggplot2. As there were a lot of variable and I tried to use normal aesthetic mapping inside for-loop as, p1<-ggplot(df,…
TheRimalaya
  • 4,232
  • 2
  • 31
  • 37
0
votes
1 answer

changing line width in stat_qq (with ggplot, in r)

I am using ggplot with stat_qq to plot several samples. I am trying to figure out how to change the width of the lines in the chart with no luck :-( Here is (the relevant part of) my code: ggplot(data=df,aes(sample=obser, colour = sample)) +…
N.M
  • 685
  • 1
  • 9
  • 22
0
votes
0 answers

ggplot2 county-level choropleth error with aesthetics

I'm quite new with R and have been trying to use ggplot2 to try and replicate county-level choropleths of unemployment data, using FIPS codes as the identifying variable between both shapefiles and the data. I tried to mesh the methods used by…
0
votes
1 answer

Remove 'duplicate' element from ggplot2 legend in R

[Edited to have runnable code and with second approach] I've found several links that seem relevant here, here and here but can't see my way straight to figuring out how to apply them to my challenge: I have a line plot created with ggplot2 that…
0
votes
0 answers

Make multiple ggplot have the same point colours in r

I need to show 3 ggplot scatterplots and one dendrogram on one page. How can I make the point colours the same in each scatter plot (i.e. I need the points for group two to be the same colour for all 3 graphs).…
Elizabeth
  • 6,391
  • 17
  • 62
  • 90
-1
votes
1 answer

R Base plotting, how to add a bold layer to mtext?

mtext("Females", outer=TRUE) I want to make the outer title bold but I am unable to add a bold layer to it. Please help
js.yge
  • 1
  • 1
-1
votes
2 answers

Changing default ggplot colours of a dodged bar chart

I have the following data frame: from variable value 1 ASM cent.degree 0.208333333 2 AUS cent.degree 0.958333333 3 COK cent.degree 0.166666667 4 FJI cent.degree 0.916666667 5 FSM cent.degree…
-2
votes
1 answer

Change color of specific points

anyone could help me to change the color of points (using geom_point) in R? I need to set, for example, different colors for points above and below 3 standard deviation of the dataset. The plot is following:
Brietzke
  • 1
  • 1
-2
votes
2 answers

Why do 'if' statements including arguments don't work in ggplot geoms?

Why do the following won't work? ggplot(mtcars,aes(x=wt,y=mpg)) + geom_smooth({if (T) ("colour='red'")}) ggplot(mtcars,aes(x=wt,y=mpg)) + geom_smooth(ifelse(T,("colour='red'"))) ggplot(mtcars,aes(x=wt,y=mpg)) + …
rempsyc
  • 785
  • 5
  • 24
-3
votes
1 answer

Adjust group aesthetics while plottng multiple lines?

While executing the below Shiny code: library("shiny") library("ggplot2") library("DT") library("reshape2") ## load data ## aqi = read.csv(file = "C:/Users/stan/Desktop/AIR/month.csv", header = T, sep = ",") str(aqi) colnames(aqi) =…
stan
  • 11
  • 1
-3
votes
2 answers

Change color and add legend in ggplot

I'm trying to plot some data ("DAPC2") with two variables linked to coordinates in ggplot2. The data looks like this: LD1 LD2 Locality Ecoregion CA2 0.9524254 -15.906715 Caldera Central_Chile CO4 11.4640606 3.644242 …
1 2 3
13
14