EN VI
Posts (0)

No data results!

Please check back again in feature!

Questions (10)
2024-03-09 23:00:19
You can create a second dataframe with your ratio for the labels and the summed frequencies for the y position: library(ggplot2) library(dplyr) library(tidyr) dat_ = structure(list(period = c(1L, 2L,...
Tags: r ggplot2
2024-03-10 20:00:04
To color your edges according to the direction map the numeric index on colour using after_stat. Additionally, to set the colors for the edges you have use ggraph::scale_edge_color_gradient: library(t...
Tags: r ggplot2 igraph
2024-03-12 17:30:04
Add drop=FALSE to the x and/or fill scale and if you are using ggplot2 >= 3.5.0 additionally add show.legend=TRUE to geom_boxplot (otherwise the key symbol will not be shown in the fill legend): libr...
Tags: r ggplot2
2024-03-13 22:00:08
The first issue is that by adding the text aes you change the grouping, i.e. to fix that explicitly map or set the group aes using group = GroupBy. The second issue is due to a change in ggplot2 which...
Tags: r ggplot2 shiny
2024-03-14 14:30:05
The issue is that in your second approach you pass a data.frame to xintercept which results in an error. Instead, to achieve your desired result create a separate data frame containing the dates for t...
Tags: r ggplot2 charts
2024-03-15 07:30:04
library(tidyverse) df % summarise(Proportion = mean(Fibre == TRUE) * 100) ggplot(data = proportions, aes(x = Category, y = Proportion, fill = Sub_Category)) +...
Tags: r ggplot2
2024-03-15 20:30:10
ggbuild() returns facet number in a column called PANEL. You can add a new faceting column by indexing into unique values of your original faceting variable. library(ggplot2) p
Tags: r ggplot2 boxplot
2024-03-15 22:00:07
You need to convert to a continuous scale to use minor ticks, since there are no minor breaks on a discrete axis: dt %>% ggplot(aes(var1, as.numeric(factor(ca)), fill = var2)) + geom_col(width =...
Tags: r ggplot2 axis
2024-03-17 09:00:04
With !!ensym() (so that ggplot evaluates the strings as variables): library(tidyverse) data(diamonds) ### Create bins for carat ### carat_bins
Tags: r ggplot2
2024-03-17 11:30:04
This is a very not R-like solution but i could not find any other solution to what seemed to be a very simple problem df_sum |> ggplot(aes(x = age))+ geom_col(data = df_sum |> filter(str_detect(age...
Tags: r ggplot2

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login