Stacked geom_bar plot with datesHow to extend the 'summary' function to include sd, kurtosis and skew?Plot two graphs in same plot in RTrouble with levels on continuous bar chart with ggplot2ggplot2 for procrustes rotation in veganList of Groups Plot in line graph In R IssueUsing R to group values within different vectors so they can be plotted (ggplot2)ggplot: Multiple years on same plot by monthggplot2: How to match Standard Error and Value in accord with a Third ColumnError while doing Linear Regression in RAdvanced ggplot2 plotting, annotations with axis value of zero and datesGetting map from purrr to work with paste0
Who's behind community AMIs on Amazon EC2?
How to determine if result of process substitution is a file path
Return last number in sub-sequences in a list of integers
Word for pulling a punch in karate
What is the reason behind water not falling from a bucket at the top of loop?
Can I shorten this filter, that finds disk sizes over 100G?
Backpacking with incontinence
When did J.K. Rowling decide to make Ron and Hermione a couple?
What is the most 'environmentally friendly' way to learn to fly?
If a Shadow Magic sorcerer casts Darkness using the Eyes of the Dark feature, can they cast another spell that requires concentration?
Matrix condition number and reordering
How to get maximum number that newcount can hold?
How is Sword Coast North governed?
Deflecting lasers with lightsabers
How do people drown while wearing a life jacket?
Could flaps be raised upward to serve as spoilers / lift dumpers?
Export economy of Mars
Is Illustrator accurate for business card sizes?
linearization of objective function
UX writing: When to use "we"?
Feedback diagram
Can birds evolve without trees?
Why do we need a voltage divider when we get the same voltage at the output as the input?
Is law enforcement responcible for damages made by a search warrent?
Stacked geom_bar plot with dates
How to extend the 'summary' function to include sd, kurtosis and skew?Plot two graphs in same plot in RTrouble with levels on continuous bar chart with ggplot2ggplot2 for procrustes rotation in veganList of Groups Plot in line graph In R IssueUsing R to group values within different vectors so they can be plotted (ggplot2)ggplot: Multiple years on same plot by monthggplot2: How to match Standard Error and Value in accord with a Third ColumnError while doing Linear Regression in RAdvanced ggplot2 plotting, annotations with axis value of zero and datesGetting map from purrr to work with paste0
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to create a stacked geom_bar plot of the cumulative number of sessions by date (per month) by group. For some reason even though my x variable dates starts at 2016-11-01 and ends at 2019-02-01 for both groups the plot is starting at 2015-12-01 (Dec-2015) and the values are all clumping together at Jan-16, Jan-17... etc.
When my dates were characters it was working, but then I couldn't reorder. So I changed them to dates, but are now having the above issue.
here is the dput() of my data imported from an initial csv file
recruitment_tally<-structure(list(dates = structure(c(16811, 16812, 17167, 17168,
17169, 17170, 17171, 17172, 17173, 17174, 17175, 17176, 17177,
17178, 17532, 17533, 17534, 17535, 17536, 17537, 17538, 17539,
17540, 17541, 17542, 17543, 17897, 17898, 17899, 16811, 16812,
17167, 17168, 17169, 17170, 17171, 17172, 17173, 17174, 17175,
17176, 17177, 17178, 17532, 17533, 17534, 17535, 17536, 17537,
17538, 17539, 17540, 17541, 17542, 17543, 17897, 17898, 17899
), class = "Date"), group = structure(c(1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L), .Label = c("control", "mtbi"), class = "factor"),
total_sessions = c(4, 8, 11, 15, 19, 21, 27, 33, 35, 38,
41, 44, 47, 48, 51, 53, 56, 58, 59, 62, 63, 63, 66, 67, 69,
70, 71, 72, 73, 0, 0, 0, 2, 3, 5, 8, 10, 15, 18, 20, 27,
28, 28, 32, 34, 36, 36, 39, 41, 41, 43, 49, 50, 53, 57, 58,
60, 63)), row.names = c(NA, -58L), spec = structure(list(
cols = list(date = structure(list(), class = c("collector_character",
"collector")), group = structure(list(), class = c("collector_character",
"collector")), culm_total = structure(list(), class = c("collector_double",
"collector"))), default = structure(list(), class = c("collector_guess",
"collector"))), class = "col_spec"), class = c("tbl_df",
"tbl", "data.frame"))
here is my ggplot code
library(ggplot2)
base<- recruitment_tally %>%
ggplot()+
geom_bar(aes(y = total_sessions, x= dates, fill = group),
stat="identity",position="dodge") +
coord_flip()
base + scale_x_date(date_breaks = "month", date_labels = "%b%y")
thanks very much for your help!
r ggplot2 geom-bar
add a comment |
I'm trying to create a stacked geom_bar plot of the cumulative number of sessions by date (per month) by group. For some reason even though my x variable dates starts at 2016-11-01 and ends at 2019-02-01 for both groups the plot is starting at 2015-12-01 (Dec-2015) and the values are all clumping together at Jan-16, Jan-17... etc.
When my dates were characters it was working, but then I couldn't reorder. So I changed them to dates, but are now having the above issue.
here is the dput() of my data imported from an initial csv file
recruitment_tally<-structure(list(dates = structure(c(16811, 16812, 17167, 17168,
17169, 17170, 17171, 17172, 17173, 17174, 17175, 17176, 17177,
17178, 17532, 17533, 17534, 17535, 17536, 17537, 17538, 17539,
17540, 17541, 17542, 17543, 17897, 17898, 17899, 16811, 16812,
17167, 17168, 17169, 17170, 17171, 17172, 17173, 17174, 17175,
17176, 17177, 17178, 17532, 17533, 17534, 17535, 17536, 17537,
17538, 17539, 17540, 17541, 17542, 17543, 17897, 17898, 17899
), class = "Date"), group = structure(c(1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L), .Label = c("control", "mtbi"), class = "factor"),
total_sessions = c(4, 8, 11, 15, 19, 21, 27, 33, 35, 38,
41, 44, 47, 48, 51, 53, 56, 58, 59, 62, 63, 63, 66, 67, 69,
70, 71, 72, 73, 0, 0, 0, 2, 3, 5, 8, 10, 15, 18, 20, 27,
28, 28, 32, 34, 36, 36, 39, 41, 41, 43, 49, 50, 53, 57, 58,
60, 63)), row.names = c(NA, -58L), spec = structure(list(
cols = list(date = structure(list(), class = c("collector_character",
"collector")), group = structure(list(), class = c("collector_character",
"collector")), culm_total = structure(list(), class = c("collector_double",
"collector"))), default = structure(list(), class = c("collector_guess",
"collector"))), class = "col_spec"), class = c("tbl_df",
"tbl", "data.frame"))
here is my ggplot code
library(ggplot2)
base<- recruitment_tally %>%
ggplot()+
geom_bar(aes(y = total_sessions, x= dates, fill = group),
stat="identity",position="dodge") +
coord_flip()
base + scale_x_date(date_breaks = "month", date_labels = "%b%y")
thanks very much for your help!
r ggplot2 geom-bar
add a comment |
I'm trying to create a stacked geom_bar plot of the cumulative number of sessions by date (per month) by group. For some reason even though my x variable dates starts at 2016-11-01 and ends at 2019-02-01 for both groups the plot is starting at 2015-12-01 (Dec-2015) and the values are all clumping together at Jan-16, Jan-17... etc.
When my dates were characters it was working, but then I couldn't reorder. So I changed them to dates, but are now having the above issue.
here is the dput() of my data imported from an initial csv file
recruitment_tally<-structure(list(dates = structure(c(16811, 16812, 17167, 17168,
17169, 17170, 17171, 17172, 17173, 17174, 17175, 17176, 17177,
17178, 17532, 17533, 17534, 17535, 17536, 17537, 17538, 17539,
17540, 17541, 17542, 17543, 17897, 17898, 17899, 16811, 16812,
17167, 17168, 17169, 17170, 17171, 17172, 17173, 17174, 17175,
17176, 17177, 17178, 17532, 17533, 17534, 17535, 17536, 17537,
17538, 17539, 17540, 17541, 17542, 17543, 17897, 17898, 17899
), class = "Date"), group = structure(c(1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L), .Label = c("control", "mtbi"), class = "factor"),
total_sessions = c(4, 8, 11, 15, 19, 21, 27, 33, 35, 38,
41, 44, 47, 48, 51, 53, 56, 58, 59, 62, 63, 63, 66, 67, 69,
70, 71, 72, 73, 0, 0, 0, 2, 3, 5, 8, 10, 15, 18, 20, 27,
28, 28, 32, 34, 36, 36, 39, 41, 41, 43, 49, 50, 53, 57, 58,
60, 63)), row.names = c(NA, -58L), spec = structure(list(
cols = list(date = structure(list(), class = c("collector_character",
"collector")), group = structure(list(), class = c("collector_character",
"collector")), culm_total = structure(list(), class = c("collector_double",
"collector"))), default = structure(list(), class = c("collector_guess",
"collector"))), class = "col_spec"), class = c("tbl_df",
"tbl", "data.frame"))
here is my ggplot code
library(ggplot2)
base<- recruitment_tally %>%
ggplot()+
geom_bar(aes(y = total_sessions, x= dates, fill = group),
stat="identity",position="dodge") +
coord_flip()
base + scale_x_date(date_breaks = "month", date_labels = "%b%y")
thanks very much for your help!
r ggplot2 geom-bar
I'm trying to create a stacked geom_bar plot of the cumulative number of sessions by date (per month) by group. For some reason even though my x variable dates starts at 2016-11-01 and ends at 2019-02-01 for both groups the plot is starting at 2015-12-01 (Dec-2015) and the values are all clumping together at Jan-16, Jan-17... etc.
When my dates were characters it was working, but then I couldn't reorder. So I changed them to dates, but are now having the above issue.
here is the dput() of my data imported from an initial csv file
recruitment_tally<-structure(list(dates = structure(c(16811, 16812, 17167, 17168,
17169, 17170, 17171, 17172, 17173, 17174, 17175, 17176, 17177,
17178, 17532, 17533, 17534, 17535, 17536, 17537, 17538, 17539,
17540, 17541, 17542, 17543, 17897, 17898, 17899, 16811, 16812,
17167, 17168, 17169, 17170, 17171, 17172, 17173, 17174, 17175,
17176, 17177, 17178, 17532, 17533, 17534, 17535, 17536, 17537,
17538, 17539, 17540, 17541, 17542, 17543, 17897, 17898, 17899
), class = "Date"), group = structure(c(1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L), .Label = c("control", "mtbi"), class = "factor"),
total_sessions = c(4, 8, 11, 15, 19, 21, 27, 33, 35, 38,
41, 44, 47, 48, 51, 53, 56, 58, 59, 62, 63, 63, 66, 67, 69,
70, 71, 72, 73, 0, 0, 0, 2, 3, 5, 8, 10, 15, 18, 20, 27,
28, 28, 32, 34, 36, 36, 39, 41, 41, 43, 49, 50, 53, 57, 58,
60, 63)), row.names = c(NA, -58L), spec = structure(list(
cols = list(date = structure(list(), class = c("collector_character",
"collector")), group = structure(list(), class = c("collector_character",
"collector")), culm_total = structure(list(), class = c("collector_double",
"collector"))), default = structure(list(), class = c("collector_guess",
"collector"))), class = "col_spec"), class = c("tbl_df",
"tbl", "data.frame"))
here is my ggplot code
library(ggplot2)
base<- recruitment_tally %>%
ggplot()+
geom_bar(aes(y = total_sessions, x= dates, fill = group),
stat="identity",position="dodge") +
coord_flip()
base + scale_x_date(date_breaks = "month", date_labels = "%b%y")
thanks very much for your help!
r ggplot2 geom-bar
r ggplot2 geom-bar
asked Mar 27 at 0:28
hc999hc999
83 bronze badges
83 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I think what has happened here is that the dates are not as expected after CSV import.
The dates in your example data seem to be the first 12 days of each month. I assume that what you want is the first day for each of the 12 months of the year. I suspect that somewhere along the way, dates in year-day-month format became year-month-day.
You can fix this using your data like this:
recruitment_tally %>%
mutate(dates = as.Date(as.character(dates), "%Y-%d-%m")) %>%
ggplot(aes(dates, total_sessions)) +
geom_col(aes(fill = group)) +
coord_flip() +
scale_x_date(date_labels = "%b %Y")
But the better fix is to get the date format correct when importing the data.
Thank you!!! :) Just for my additional learning, is there a way to check this?? I would usually just use class(dates) which would just returns date, so not the format of the date. Or did you just identify the problem from looking at the code?
– hc999
Mar 27 at 1:12
1
@hc999: you can usestr()
orsummary()
to have an overview of the imported data or even better use one of the packages from this answer
– Tung
Mar 27 at 2:08
@hc999 I figured from your description of the problem and the example data that days and months were switched, since your dates were year-month-day but had no days greater than 12. You need to know in advance whether your dates are YYYY-MM-DD or YYYY-DD-MM. Then you can specify the correct format using arguments to e.g.read.csv
or better,readr::read_csv
.
– neilfws
Mar 27 at 2:27
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368093%2fstacked-geom-bar-plot-with-dates%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think what has happened here is that the dates are not as expected after CSV import.
The dates in your example data seem to be the first 12 days of each month. I assume that what you want is the first day for each of the 12 months of the year. I suspect that somewhere along the way, dates in year-day-month format became year-month-day.
You can fix this using your data like this:
recruitment_tally %>%
mutate(dates = as.Date(as.character(dates), "%Y-%d-%m")) %>%
ggplot(aes(dates, total_sessions)) +
geom_col(aes(fill = group)) +
coord_flip() +
scale_x_date(date_labels = "%b %Y")
But the better fix is to get the date format correct when importing the data.
Thank you!!! :) Just for my additional learning, is there a way to check this?? I would usually just use class(dates) which would just returns date, so not the format of the date. Or did you just identify the problem from looking at the code?
– hc999
Mar 27 at 1:12
1
@hc999: you can usestr()
orsummary()
to have an overview of the imported data or even better use one of the packages from this answer
– Tung
Mar 27 at 2:08
@hc999 I figured from your description of the problem and the example data that days and months were switched, since your dates were year-month-day but had no days greater than 12. You need to know in advance whether your dates are YYYY-MM-DD or YYYY-DD-MM. Then you can specify the correct format using arguments to e.g.read.csv
or better,readr::read_csv
.
– neilfws
Mar 27 at 2:27
add a comment |
I think what has happened here is that the dates are not as expected after CSV import.
The dates in your example data seem to be the first 12 days of each month. I assume that what you want is the first day for each of the 12 months of the year. I suspect that somewhere along the way, dates in year-day-month format became year-month-day.
You can fix this using your data like this:
recruitment_tally %>%
mutate(dates = as.Date(as.character(dates), "%Y-%d-%m")) %>%
ggplot(aes(dates, total_sessions)) +
geom_col(aes(fill = group)) +
coord_flip() +
scale_x_date(date_labels = "%b %Y")
But the better fix is to get the date format correct when importing the data.
Thank you!!! :) Just for my additional learning, is there a way to check this?? I would usually just use class(dates) which would just returns date, so not the format of the date. Or did you just identify the problem from looking at the code?
– hc999
Mar 27 at 1:12
1
@hc999: you can usestr()
orsummary()
to have an overview of the imported data or even better use one of the packages from this answer
– Tung
Mar 27 at 2:08
@hc999 I figured from your description of the problem and the example data that days and months were switched, since your dates were year-month-day but had no days greater than 12. You need to know in advance whether your dates are YYYY-MM-DD or YYYY-DD-MM. Then you can specify the correct format using arguments to e.g.read.csv
or better,readr::read_csv
.
– neilfws
Mar 27 at 2:27
add a comment |
I think what has happened here is that the dates are not as expected after CSV import.
The dates in your example data seem to be the first 12 days of each month. I assume that what you want is the first day for each of the 12 months of the year. I suspect that somewhere along the way, dates in year-day-month format became year-month-day.
You can fix this using your data like this:
recruitment_tally %>%
mutate(dates = as.Date(as.character(dates), "%Y-%d-%m")) %>%
ggplot(aes(dates, total_sessions)) +
geom_col(aes(fill = group)) +
coord_flip() +
scale_x_date(date_labels = "%b %Y")
But the better fix is to get the date format correct when importing the data.
I think what has happened here is that the dates are not as expected after CSV import.
The dates in your example data seem to be the first 12 days of each month. I assume that what you want is the first day for each of the 12 months of the year. I suspect that somewhere along the way, dates in year-day-month format became year-month-day.
You can fix this using your data like this:
recruitment_tally %>%
mutate(dates = as.Date(as.character(dates), "%Y-%d-%m")) %>%
ggplot(aes(dates, total_sessions)) +
geom_col(aes(fill = group)) +
coord_flip() +
scale_x_date(date_labels = "%b %Y")
But the better fix is to get the date format correct when importing the data.
answered Mar 27 at 1:01
neilfwsneilfws
20.5k5 gold badges38 silver badges49 bronze badges
20.5k5 gold badges38 silver badges49 bronze badges
Thank you!!! :) Just for my additional learning, is there a way to check this?? I would usually just use class(dates) which would just returns date, so not the format of the date. Or did you just identify the problem from looking at the code?
– hc999
Mar 27 at 1:12
1
@hc999: you can usestr()
orsummary()
to have an overview of the imported data or even better use one of the packages from this answer
– Tung
Mar 27 at 2:08
@hc999 I figured from your description of the problem and the example data that days and months were switched, since your dates were year-month-day but had no days greater than 12. You need to know in advance whether your dates are YYYY-MM-DD or YYYY-DD-MM. Then you can specify the correct format using arguments to e.g.read.csv
or better,readr::read_csv
.
– neilfws
Mar 27 at 2:27
add a comment |
Thank you!!! :) Just for my additional learning, is there a way to check this?? I would usually just use class(dates) which would just returns date, so not the format of the date. Or did you just identify the problem from looking at the code?
– hc999
Mar 27 at 1:12
1
@hc999: you can usestr()
orsummary()
to have an overview of the imported data or even better use one of the packages from this answer
– Tung
Mar 27 at 2:08
@hc999 I figured from your description of the problem and the example data that days and months were switched, since your dates were year-month-day but had no days greater than 12. You need to know in advance whether your dates are YYYY-MM-DD or YYYY-DD-MM. Then you can specify the correct format using arguments to e.g.read.csv
or better,readr::read_csv
.
– neilfws
Mar 27 at 2:27
Thank you!!! :) Just for my additional learning, is there a way to check this?? I would usually just use class(dates) which would just returns date, so not the format of the date. Or did you just identify the problem from looking at the code?
– hc999
Mar 27 at 1:12
Thank you!!! :) Just for my additional learning, is there a way to check this?? I would usually just use class(dates) which would just returns date, so not the format of the date. Or did you just identify the problem from looking at the code?
– hc999
Mar 27 at 1:12
1
1
@hc999: you can use
str()
or summary()
to have an overview of the imported data or even better use one of the packages from this answer– Tung
Mar 27 at 2:08
@hc999: you can use
str()
or summary()
to have an overview of the imported data or even better use one of the packages from this answer– Tung
Mar 27 at 2:08
@hc999 I figured from your description of the problem and the example data that days and months were switched, since your dates were year-month-day but had no days greater than 12. You need to know in advance whether your dates are YYYY-MM-DD or YYYY-DD-MM. Then you can specify the correct format using arguments to e.g.
read.csv
or better, readr::read_csv
.– neilfws
Mar 27 at 2:27
@hc999 I figured from your description of the problem and the example data that days and months were switched, since your dates were year-month-day but had no days greater than 12. You need to know in advance whether your dates are YYYY-MM-DD or YYYY-DD-MM. Then you can specify the correct format using arguments to e.g.
read.csv
or better, readr::read_csv
.– neilfws
Mar 27 at 2:27
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368093%2fstacked-geom-bar-plot-with-dates%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown