search for: cowplot

Displaying 11 results from an estimated 11 matches for "cowplot".

Did you mean: coplot
2016 Jul 13
2
par() y ggplot2
Hola. Tengo 4 gráficos: a <- qqnorm(total$ImpTotal) #con lattice y b, c y d son variaciones de este tipo?, creados con ggplot2: ?b <- g <- ggplot(data = total, aes(x=ImpTotal, fill=Convenio)) g + geom_histogram(binwidth = 90) ? Los quiero representar de la forma: par(mfrow=c(2,2)) a b c d Pero los que crea con ggplot2 aparecen en par(mfrow=c(1,1)), es decir: ignora la instrucción.
2023 Aug 12
2
geom_smooth
Colleagues, Here is my reproducible code for a graph using geom_smooth set.seed(55) scatter_data <- tibble(x_var = runif(100, min = 0, max = 25) ?????????????????????? ,y_var = log2(x_var) + rnorm(100)) library(ggplot2) library(cowplot) ggplot(scatter_data,aes(x=x_var,y=y_var))+ ? geom_point()+ ? geom_smooth(se=TRUE,fill="blue",color="black",linetype="dashed")+ ? theme_cowplot() I'd like to add a black boundary around the shaded area. I suspect this can be done with geom_ribbon but I cannot fig...
2023 Aug 12
1
geom_smooth
...via R-help escreveu: > Colleagues, > > Here is my reproducible code for a graph using geom_smooth > set.seed(55) > scatter_data <- tibble(x_var = runif(100, min = 0, max = 25) > ?????????????????????? ,y_var = log2(x_var) + rnorm(100)) > > library(ggplot2) > library(cowplot) > > ggplot(scatter_data,aes(x=x_var,y=y_var))+ > ? geom_point()+ > ? geom_smooth(se=TRUE,fill="blue",color="black",linetype="dashed")+ > ? theme_cowplot() > > I'd like to add a black boundary around the shaded area. I suspect this can be...
2019 Jul 23
2
[External] Re: quiet namespace load is noisy
Dear Russ, I had the same problem in my vignettes and setting both message and warning to FALSE seems to remove all unwanted output: ```{r message=FALSE, warning=FALSE} library("afex") library("ggplot2") library("cowplot") theme_set(theme_grey()) ``` Result: https://cran.r-project.org/web/packages/afex/vignettes/afex_plot_introduction.html Best, Henrik Am Di., 23. Juli 2019 um 14:52 Uhr schrieb Ben Bolker <bbolker at gmail.com>: > > Does setting message=FALSE in the chunk options of the vign...
2018 Jan 19
0
Split charts with ggplot2, tidyquant
Hi Charlie, Thanks. This is helpful. As mentioned in my original question, I want to be able to plot a few such charts on the same page, say a 2 x 2 grid with such a chart for each of 4 different stocks. Using your solution I accomplished this by making a list pLst of your ggplots and then calling cowplot::plot_grid( plotlist=pLst, nrow=2, ncol=2 ) That worked fine. The one issue I have is that in the ggplot you suggest, the price and volume facets are the same size. I would like them to be different sizes (e.g. the volume facet at the bottom is generally shown smaller than the facet above it in...
2018 Jan 19
2
Split charts with ggplot2, tidyquant
So the general strategy for getting these into separate panels in ggplot is to have a single variable that will be your response and a factor variable that indexes which original variable it came from. This can be accomplished in many ways, but the way I use is with the melt() function in the reshape2 package. For example, library(reshape2) plotDF <- melt(SPYdf, ??? ??? ??? ??? ??? ???
2018 Jan 20
2
Split charts with ggplot2, tidyquant
...his is helpful. As mentioned in my original question, I want > to be able to plot a few such charts on the same page, > say a 2 x 2 grid with such a chart for each of 4 different stocks. > Using your solution I accomplished this by making > a list pLst of your ggplots and then calling cowplot::plot_grid( > plotlist=pLst, nrow=2, ncol=2 )? That worked fine. > > The one issue? I have is that in the ggplot you suggest, the price and > volume facets are the same size. I would like them to be different sizes > (e.g. the volume facet at the bottom is generally shown smaller t...
2017 Nov 10
1
How to create separate legend for each plot in the function of facet_wrap in ggplot2?
Hi R users, I need to create more than 20 figures (one for each group) in one page. I have a common legend for 20 figures using the facet_wrap. However the range of the values among the groups are very wide. For example one group has the value of 0 to 3, but the values of some of the groups has ranged from 0 to 20 so that when I used a single common legend for all 20 figures, I could not display
2018 Jan 20
0
Split charts with ggplot2, tidyquant
...mentioned in my original question, I want > > to be able to plot a few such charts on the same page, > > say a 2 x 2 grid with such a chart for each of 4 different stocks. > > Using your solution I accomplished this by making > > a list pLst of your ggplots and then calling cowplot::plot_grid( > > plotlist=pLst, nrow=2, ncol=2 ) That worked fine. > > > > The one issue I have is that in the ggplot you suggest, the price and > > volume facets are the same size. I would like them to be different sizes > > (e.g. the volume facet at the bottom is ge...
2018 Jan 21
1
Split charts with ggplot2, tidyquant
...question, I > want > > to be able to plot a few such charts on the same page, > > say a 2 x 2 grid with such a chart for each of 4 different stocks. > > Using your solution I accomplished this by making > > a list pLst of your ggplots and then calling cowplot::plot_grid( > > plotlist=pLst, nrow=2, ncol=2 )? That worked fine. > > > > The one issue? I have is that in the ggplot you suggest, the > price and > > volume facets are the same size. I would like them to be > different sizes > > (e.g...
2019 Jul 23
2
[External] Re: quiet namespace load is noisy
Lionel, Thanks for your response. I understand that method overriding can be a serious issue, but as you say, this is not something that the user can act upon. Yet the message lands at the user?s feet. In my case, the messages are cluttering my package vignettes, and may or may not represent what users see if they themselves run the vignette code, depending on what version of ggplot2, etc. they