Context is everything. Please follow the Posting Guide and provide a minimal reproducible example. Also, if your scripts are literally the same on the two platforms, you should provide the output of the sessionInfo() function for each. -- Sent from my phone. Please excuse my brevity.
On May 18, 2016 12:32:47 AM PDT, phi...@free.fr wrote: > >Hello, > >I have written an R script which displays a bar chart using the ggplot2 >library (please refer >to code excerpt at the bottom of this e-mail). > >Although the bar chart is displayed OK in the Windows version of >RStudio (v. 3.2.4), >nothing appears on Linux RH 7 in Rstudio Server 3.2.3. > >I have tried replacing the data frame in the RH-version of the script >by > >--------------------------------------------------------------------------- > >a <- c("ab", "bc", "cd") >b <- c(1, 2, 3) >ds <- data.frame(a,b) >g1 <- ggplot(data = ds, aes(x = a)) > > >---------------------------------------------------------------------------- > >... but to avail: ggplot doesn't plot anything. No error message are >displayed. > >Any help with this issue would be much appreciated. > >Many thanks. > >phiroc > > >----------------------------- R Code Excerpt >------------------------------- > > >g1 <- ggplot(data = mergedD, aes(x=DESC_TYPE)) >g1 + geom_bar(stat="count", fill=rainbow(numberOfDistinctActions), >colour="black") + > xlab("Action & Description") + > ylab("Count") + > ggtitle(paste0( > "Number of Customer Actions in XXX from ", day0, "/", mon, > "/", year, " to ", day1, "/", mon, "/", year, > " in Paris & Hong Kong")) + > coord_flip() > >______________________________________________ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >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]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.