Questions tagged [gplots]

Various R programming tools for plotting data

gplots: Various R programming tools for plotting data

164 questions
1
vote
2 answers

How to change position of rowsidecolors in R heatmap.2

When using the R heatmap.2 function from the gplots package, one can pass the argument rowsidecolors, which will then insert a column next to the dendrogram as shown here. I was wondering if it is possible to relocate the column to the opposite side…
2scoops
  • 11
  • 1
  • 3
1
vote
1 answer

Heat map- adjusting color range

library(gplots) shades= c(seq(-1,0.8,length=64),seq(0.8,1.2,length=64),seq(1.2,3,length=64)) heatmap.2(cor_mat, dendrogram='none', Rowv=FALSE, Colv=FALSE, col=redblue(64), breaks=shades, key=TRUE, cexCol=0.7, cexRow=1, keysize=1) There is some…
rockswap
  • 623
  • 1
  • 7
  • 17
0
votes
0 answers

R not producing any plots

I downloaded the new update for R (4.3.0 (2023-04-21 ucrt)) and for some reason, it isn't producing any of my previously made plots. Example below. corPlot(ucla_val) semPlot::semPaths(UCLA_8, what = "std", layout = "circle") I'll save them to…
Devon Fox
  • 9
  • 3
0
votes
0 answers

heatmap.2 dendrogram wrongly reorder

I have created a heatmap using gplot package heatmap.2 command,I want to seperate case and control group of my gene sample data.But dendrogram mixed one of my control sample column to case sample group.How can I reorder it? I used the below…
Amanat
  • 1
  • 1
0
votes
2 answers

Best plot to represent categorical data

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 bar plot to represent the data using R. Are…
Christina
  • 9
  • 7
0
votes
2 answers

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 correspond to the period 2007-2017 and 142 countries. We use…
jmatosv
  • 1
  • 1
0
votes
1 answer

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) However, I get the following error: Error in density.default(mlog(x), bw = bw, kernel = kernel,…
Exploring
  • 2,493
  • 11
  • 56
  • 97
0
votes
2 answers

For loop in ggplot for multiple time series viz

I need to make multiple individual plots of each time series (column) in my dataset: https://github.com/rhozon/datasets/raw/master/multiple_time_series_dataset.csv I thought of some for loop that loops through each column and plots each graph…
0
votes
0 answers

Visualizing the output for Mean() and Lm() [logit, two tailed t-test, and ordinary least squares]

New to R and struggling on how best to visualize my results. I'm also new to stack overflow so I apologize if my formatting is incorrect or distasteful. Four relationships (or lack there of) I'd like to visualize. I've made whisker plots, bar…
0
votes
1 answer

Overlay Polygon layer on a raster stack qplot

I want to plot 7 TIFF files side by side using gplot and I want to overlay a polygon layer over them. I tried reading the shapefile using st_read and then using geom_sf or geom_polygon to plot it. But it didn't work. It was throwing an error…
Ray
  • 56
  • 1
  • 7
0
votes
1 answer

How to align a map plot and connection plot with a rasterized image in r?

How do I make this map and its points align with my image? [1]: https://i.stack.imgur.com/d6WRc.png earth <- file.choose() earth <- readJPEG(earth, native=TRUE) par(mar=c(360,360,360,360)) grid.raster(earth) maps::…
0
votes
0 answers

How to increase the display limit of label items in a heat map?

I'm new to R and using gplots package to generate a heat map for a list of 52 proteins. But the output image does not contain the entire list of proteins (displays only 26) on the right. The image is hazy too. I would be thankful if someone can help…
0
votes
1 answer

I want to create a double layered pie / donut chart in R

and I am trying to create a double layered pie, here is my data: winner <- c("White" , "draw" , "Black") lowrated_scotch1 <- c(0.56617647, 0.04411765, 0.38970588) #winrate for Whites,Draws,Blacks in chess highrated_scotch1 <-…
0
votes
1 answer

Using 2 or more cellnote colors in heatmap.2 R

I'm currently working on a heatmap that uses a complex discrete color scale (about 34 different colors). Some of the colors are dark while others are light. I'm labeling cells with the cellnote argument of the heatmap.2() function. Since some of the…
MikeKatz45
  • 545
  • 5
  • 16