Skip to main content

Questions tagged [gplots]

Various R programming tools for plotting data

0 votes
0 answers
20 views

Multiple measurements taken at discrete depths, how to plot as a box plot in R [closed]

I have multiple measurements taken at varying depths in the form of the table below: Depth_1 Depth_2 Perm_1 Perm_1 Perm_2 Perm_2 This is taken for 11 depths with each depth containing 8 ...
diver77's user avatar
0 votes
0 answers
46 views

How can I get a correlogram for spatial autocorrelation in networks in R?

I would like to see if there's spatial autocorrelation of a measured y for the vertices of my network. The vertices are somewhat clustered. Non-connected vertices I assume to be independent. So ...
Marvin Rieck's user avatar
0 votes
2 answers
71 views

My plots only show in a separate window. How can I undo this?

I am using RStudio and doing scRNA sequencing analysis. I am trying to plot my clusters and they keep pooping up in a new window called R Graphics: Device 2 (ACTIVE). This is my code: DimPlot(pbmc....
Sara Silva's user avatar
0 votes
2 answers
127 views

Add breaks in ggplot2 x axis

I am plotting coverage against position, where I have a very simple code like this: positions <- 1:200000 coverage <- rep(0, length(positions)) coverage[1:200] <- 2000 coverage[30001:30100] &...
miguel's user avatar
  • 9
0 votes
0 answers
15 views

R: How to group data by numerical ranges and visualize it grouped by a category and these ranges? [duplicate]

I have data like this: DL Rel SL 2 amod 12 1 amod 12 2 det 12 1 amod 12 4 nmod 12 2 det 12 1 amod 12 4 appos 12 1 case 9 2 case 9 1 amod 9 4 nmod 9 1 appos 9 1 case 44 2 nmod 44 1 cop ...
isa's user avatar
  • 13
1 vote
2 answers
55 views

ggplot graph with line above and below the median

I am trying to make a ggplot graph with two regression lines: One below and the other above the median to depict potential effect of age in the sample. So fa, I have tried: geom_hline (aes(yintercept =...
Yacila's user avatar
  • 13
1 vote
0 answers
153 views

gradient not showing low colour in ggplot2

My question is the same as this one, but I'm seeing the mid color, but not the low color in scale_fill_gradient2(). How can I display all low, mid and high colours in scale_fill_gradient2() ? No sign ...
Larissa Cury's user avatar
3 votes
2 answers
106 views

How can I integrate these plots by putting them near each other?

I have these two plots (a heatmap and a stacked barplot). How can I put these plots near each other? Indeed I want to integrate these two plots. Thanks for any help. Here is my script: df.bar <- ...
zahra abdi's user avatar
5 votes
0 answers
165 views

How to have a legend for colored edges in Julia plots?

Here is a minimal working code from Julia Discourse: using LightGraphs using GraphPlot using Colors g = graphfamous("karate") membership = [1,1,1,1,1,1,1,1,2,1,1,1,1,1,2,2,1,1,2,1,2,1,2,1,...
JKHA's user avatar
  • 1,876
0 votes
2 answers
230 views

Best plot to represent categorical data [closed]

I have a dataset containing two time-points (T1, T2), two groups (Group A, Group B), and three types of emotional faces (happy, sad, neutral) and reaction time as the dependent variable. I have used a ...
Christina's user avatar
0 votes
2 answers
139 views

How to fit a quadratic equation to a plot obtained from plotmeans function in R

We are analyzing fixed effects heterogeneity across years of a panel database ("mydata") containing values of an economic explained value depending on 12 independent variables. Data ...
jmatosv's user avatar
2 votes
1 answer
658 views

Plotting a 4 axis graph with a variable in each axis

I´m looking to make a graph that looks like this: in R. The basic idea is to have a variable on each axis and graph the interactions between those variables, is there any way to connect the axis of ...
user341262's user avatar
1 vote
0 answers
299 views

why do I get sample is too sparse to find TD using beanplot?

I am trying to draw a beanplot with the following code: library(beanplot) beanplot(df, col="#cccccc", names="plot-1", yaxt="n", overallline="median", ll=0....
Exploring's user avatar
  • 3,031
0 votes
1 answer
399 views

why do I get Error in density.default while creating bean plot

I am trying to create a beanplot: library(beanplot) beanplot(df, col="#cccccc", log="y", names="plot-1", yaxt="n", overallline="median", ll=0.00001) ...
Exploring's user avatar
  • 3,031
1 vote
0 answers
1k views

how invert the order of factors in ggplot [duplicate]

I am trying to reverse the order of the fill factor on the graph, i.e. The 0.5-1 class, must be at the top of the bar.. and then in descending order gruppo <- c("TM", "TM","...
Johanna Ramirez's user avatar

15 30 50 per page
1
2 3 4 5
12