Skip to content
Back to formatted view

Raw Message

Message-ID: <1974309718.233001.1631728194672@mail.yahoo.com>
Date: 2021-09-15T17:49:54Z
From: Kai Yang
Subject: ggplot question

Hello List,
I use ggplot to draw a stack bar chart. but I error message. please look it below:

> ggplot(s8_plot, aes(fill=GTresult, y=cases, x=gc_label) + 
+   geom_bar(position="stack", stat="identity"))

Error: Mapping should be created with `aes()` or `aes_()`.

GTresult and gc_label are character variables, cases is numeric variable. How to fix the problem?
Thank you
Kai

	[[alternative HTML version deleted]]