Thank you so much for your help.
Philip
On 2019-08-25 03:54, Rui Barradas wrote:
Hello,
The code in Eric's answer works, but maybe it's better to redo the
'col' code.
It's much simpler to create a factor with appropriate labels. Then,
the values argument in scale_fill_manual can be set more
Hello,
The code in Eric's answer works, but maybe it's better to redo the 'col'
code.
It's much simpler to create a factor with appropriate labels. Then, the
values argument in scale_fill_manual can be set more naturally, it can
depend on col.
(I have also added a theme to make the axis labe
This seems to work
ggplot(t1) +
geom_col(aes(x=TIME,y=GDPgr,fill=col),show.legend=FALSE) +
scale_fill_manual(values=c("navyblue","red")) +
facet_wrap(~Country,ncol=3)
HTH,
Eric
On Sun, Aug 25, 2019 at 5:45 AM wrote:
> Resubmitted as recommended:
>
> I am having difficulty with
Resubmitted as recommended:
I am having difficulty with a chart using ggplot. It is a facetted
column chart showing GDP growth rates by country. The columns are
coloured navyblue, except that I want to colour the most recent columns,
for 2019-Q1 and 2019-Q2, red. For some countries data are av
Hi Phil,
Please resubmit your question with the data frame contents shown as the
output from the command
dput(t1.txt). This will make it easier for people to run your reprex and
respond to your question.
Best,
Eric
On Sun, Aug 25, 2019 at 5:26 AM wrote:
> I am having difficulty with a chart u
I am having difficulty with a chart using ggplot. It is a facetted
column chart showing GDP growth rates by country. The columns are
coloured navyblue, except that I want to colour the most recent columns,
for 2019-Q1 and 2019-Q2, red. For some countries data are available up
to 2019-Q2 while f
6 matches
Mail list logo