ggplot2
ggplot2: histogram with normal curve
I\'ve been trying to superimpose a normal curve over my histogram with ggplot 2. My formula: data <- read.csv (path...)[详细]
2023-03-26 14:22 分类:问答ggplot2 plot table as lines
I would like to plot the following dataset structure(list(X = structure(c(3L, 12L, 11L, 7L, 13L, 2L, 1L,[详细]
2023-03-26 12:27 分类:问答Overlaying histograms with ggplot2 in R
I am new to R and 开发者_StackOverflowam trying to plot 3 histograms onto the same graph. Everything worked fine, but my problem is that you don\'t see where 2 histograms overlap - they look rather cu[详细]
2023-03-26 08:12 分类:问答Tornado Chart/Diagram with ggplot2
I\'m having a spot of difficulty getting this to output right... Here\'s what I\'ve tried so far: sample data:[详细]
2023-03-25 14:58 分类:问答Force Y label on scale_y_continuous()
Problem: When using scale_y_continuous() the Y axis label is removed. Example: dat <- data.frame(variable = c(\"A\",\"B\",\"C\"),[详细]
2023-03-25 14:23 分类:问答Barplot Error in R using ggplot
I try to make a barplot of a time-series dataset with ggplot2 but I get following error message (I have performed this on a similar dataset and it works):[详细]
2023-03-25 09:12 分类:问答Can I tell ggpairs to use log scales?
Can I provide a parameter to the ggpairs function in the GGally p开发者_StackOverflow社区ackage to use log scales for some, not all, variables?You can\'t provide the parameter as such (a reason is tha[详细]
2023-03-25 07:47 分类:问答How to assign colors to categorical variables in ggplot2 that have stable mapping?
I\'ve been getting up to speed with R in the last month. Here is my question: What is a good way to assign colors to categorical variables in ggplot2 that have stable mapping? I need consistent colo[详细]
2023-03-25 00:18 分类:问答change both legend titles in a ggplot with two legends
I have two legends on my ggplot with two different legend titles (automatically created from ggplot()). Now, I want to change this legend titles.+ labs(colour = \"legend name\") only change the second[详细]
2023-03-24 07:23 分类:问答ggplot2 make missing value in geom_tile not blank
In the geom_tile() layer in the ggplot2 data visualization package for R, when a cell contains no data it is not drawn. E.g. http://docs.ggplot2.org/current/geom_tile.html and search for \"missing val[详细]
2023-03-24 05:34 分类:问答