[R] ggplot aestetics: beginner question - I am lost in endless possibilites
jrkrideau at yahoo.ca
Fri Dec 16 01:22:53 CET 2016
I cannot see how you get that code to run. It certainly does not on my machine and some of the manipulations don't make any sense as far as I can see.
I changed variable and data.frame names so I would not have to type so much and read in the data with the "stringsAsFactors = FALSE" option.
I then parsed the dates (called 'known' in my data.frame) using the package "lubridate"
dat1$mydate <- dmy(dat1$mydate)
My resulting data.frame called dat1 is presented in dput() format below.
Do I understand you correctly in that you want the NA values plotted as "white" and the outline on the tiles in black?
In any case as my first steps here is a revised program to just get the tileswith no effort to get the outline or change the colours of the fill.
On Thursday, December 15, 2016 4:24 AM, Dagmar <Ramgad82 at gmx.net> wrote:
# Dear all,
# I hope someone can help me with this. I am so lost and can't find a
solution even though I spent hours on searching for a solution of that
# Maybe someone of you could give me hint?
#This is my string:
exdatframe <- data.frame(Name=c("Ernie","Ernie","Ernie",
exdatframeT <- as.POSIXct
exdatframe2 <- cbind(exdatframe, exdatframeT)
# Now all I want is:
# 1) a black outline around the bars. Adding colour="black" like I have
found elsewere on the internet doesn't work
# 2) change the colours: E.g. I want white for NAs. I can't find a
command to describe my wishes.
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help