ggplot2
Bad idea? ggplotting an S3 class object
Many R objects have S3 methods to plot associated with them.For instance, every R regression tutorial contains something like this:[详细]
2023-03-29 00:35 分类:问答How can I convert from jitter() amounts to position_jitter() widths in ggplot2?
I\'m updating a package that uses base graphics to one that uses ggplot2 graphics. In the base graphics version, users could supply a value for jj, which would then get scaled and passed to a jitter()[详细]
2023-03-28 23:57 分类:问答Removing Unused Factors from a Facet in ggplot2
I am trying to figure out a neat way to remove unused factors from a facet in ggplot2. Here is a minimal example[详细]
2023-03-28 01:31 分类:问答Manually annotate one panel w/ multiple labels
This is very similar to this question (link), but I\'m not quite sure how to manipulate it for my needs.[详细]
2023-03-28 01:11 分类:问答How to fix the aspect ratio in ggplot?
I\'m trying to resize a plot to fit into my document, but I\'m having difficulties getting the plotted diagram do be a square.[详细]
2023-03-27 20:04 分类:问答Save ggplot within a function
I\'m trying to save a ggplot within a function using graphics devices. But I found the code produces empty graphs. Below is a very very simple example.[详细]
2023-03-27 19:19 分类:问答Colorize lines in a grouped and facet_wrap ggplot
I have the following data frame: structure(list(milieu 开发者_C百科= structure(c(3L, 9L, 8L, 6L, 10L, 2L,[详细]
2023-03-27 17:47 分类:问答geom_smooth() what are the methods available?
I\'m using geom_smooth() from ggplot2. In Hadley Wickham\'s book (\"ggplot2 - Elegant Graphics for Data Analysis\") there is an example (page 51), where method=\"lm\" is used. In the online manual th[详细]
2023-03-27 02:48 分类:问答two column beamer/sweave slide with grid graphic
I\'m trying to make a presentation on ggplot2 graphics using beamer + sweave. Some slides should have two columns; the left one for the code, the right one for the resulting graphic. Here\'s what I tr[详细]
2023-03-26 21:40 分类:问答How can I force ggplot's geom_tile to fill every facet?
I am using ggplot\'s geom_tile to do 2-D density plots faceted by a factor. Every facet\'s scale goes from the minimum of all the data to the maximum of all the data, but the geom_tile in each facet o[详细]
2023-03-26 21:31 分类:问答