Questions tagged [gplots]

Various R programming tools for plotting data

gplots: Various R programming tools for plotting data

164 questions
0
votes
1 answer

R web scraping charts on multiple pages

Maybe this subject is treated in other posts but I cannot find a solution to my issue. I am trying to scrape data from https://tradingeconomics.com/indicators website. I am trying to scrape data regarding indicators, in particular the country names…
Il Forna
  • 23
  • 5
0
votes
1 answer

Creating plots of my transactions within R Studio

Good afternoon, I am trying to create some plots within R Studio from the following data: structure(list(Transaction = c(1L, 2L, 2L, 3L, 3L, 3L), Item = c("Bread", "Scandinavian", "Scandinavian", "Hot chocolate", "Jam", "Cookies" ), period_day =…
0
votes
1 answer

How to zoom in on/extract a subsection of/extract colours from a heatmap.2 in R?

I'm creating heatmaps in R using heatmap.2 (I think it needs to be heatmap.2 because I'm using 1 dataset to generate the colours of the heatmap and a second dataset to overlay numerical data). Here is a sample of my code so far. The actual data set…
Ryand956
  • 1
  • 1
0
votes
1 answer

How do i colour the max value on a plot() in R?

plot(1:4,dbinom(1:4,4,0.7), type='h', main='Binominal Distribution (n=4, p=0.7', ylab='Probability', xlab='# Successes', lwd=3,xaxt="n") This is my plot and i want to colour only the highest bar, but i don´t know how to…
0
votes
1 answer

How to plot the mean, and confidence interval bars using the plotmeans() function in the gplots package in R

Problem: I am attempting to produce a plot using the function plotmeans() in the gplots package. My goals are to display mean FID sightings (see the data frame's below called 'FID' and 'Mean_FID') with associated upper and lower confidence interval…
Alice Hobbs
  • 1,021
  • 1
  • 15
  • 31
0
votes
1 answer

How to display Metadata while making a heatmap using R

I am currently a beginner at learning how to make a heatmap on R using data stored in excel sheets, However i have managed to make a simple heatmap so far but i wanted to know how can i display metadata above the heatmap as shown in the attached…
0
votes
0 answers

Install R package gplots for R version 3.4.4?

I am trying to install 'gplots' in R 3.4.4, however I keep getting the following error: install.packages("gplots") Installing package into ‘/home/u1983390/R/x86_64-pc-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) Warning: dependency ‘caTools’ is…
Jpike
  • 187
  • 8
0
votes
1 answer

How set Times New Roman text for Rows and Columns in a Heatmap In R

I am making a Heatmap in R using Heatmap.2 and gplot. I want so that all the text, including the row and column names, along with the axis titles, are written in Times New Roman. Here is the code I have so…
0
votes
1 answer

How do I plot dendrogram alongside distance matrix in R?

I am looking for an efficient way to plot a dendrogram obtained from a data, but alongside the corresponding distance matrix instead of the original data. I have been curious about how different papers to show this and it seems that all they do is…
Anirban_Mitra
  • 59
  • 1
  • 7
0
votes
1 answer

Is there a way to have a pdf using ggplot in a for loop and save it in R?

I have this dataset: structure(list(Agency.Station.ID = c("MI270N003.6D", "MI270N004.7D", "MI270N005.7D", "MI270N007.3D", "MI270N008.5D", "MI270N003.6D", "MI270N004.7D", "MI270N005.7D", "MI270N007.3D", "MI270N008.5D" ), date_time =…
mustafa
  • 203
  • 1
  • 8
0
votes
1 answer

Heatmap with two different colour keys with heatmap.2() function

Blockquote I am trying to figure out how to get an Heatmap with two different colour keys: one for my values (which belong to the first and second columns of my matrix "df1") and a different one for my pvalue (determined by the difference between…
Dave91
  • 15
  • 4
0
votes
1 answer

Common legend and title for multiple heatmaps in R's heatmap2 package

I have plotted multiple heatmaps in one layout using grid.arrange but I want to add two more features to it. I want to plot a common legend and also put a title to every individual heatmap. But I am not able to do it. If I use main = "XYZ, it throws…
Ray
  • 56
  • 1
  • 7
0
votes
1 answer

Clustering DataFrame and Adding to Ggplot

I have clustered my dataframe with a heirarchical clustering, however my the cluster diagram and the axis from the heatmap differ strongly. I'm trying to make these the same. However this is not working properly. The DataFrame (dput()…
0
votes
2 answers

How do I use different colors when plotting in a loop (R)

I am trying to plot 18 individual plots on a 3x6 multiplot in R. To be more efficient I have created these plots as a loop, however I would like the plots in each column to have their own color (i.e. the all the plots in column 1 would be red, all…
0
votes
1 answer

Plotting sales over time in R

I am trying to show the top 100 sales on a scatterplot by year. I used the below code to take top 100 games according to sales and then set it as a data frame. top100 <- head(sort(games$NA_Sales,decreasing=TRUE), n = 100) as.data.frame(top100) I…
Gary
  • 39
  • 1
  • 5