Skip to main content

All Questions

Tagged with
0 votes
1 answer
31 views

Is there is a way to use reactive data.frame, renderplot, and observeEvent to toogle points within a shinny app

In a shiny app, I upload a data set, which is set as reactive (because it can be updated and replace by another), and plot a lm model while using ggplot2. I am only displaying a small part of the code ...
VincentP's user avatar
0 votes
1 answer
96 views

Generate dynamic number of plots based on factor levels of user input file

In a shiny app I would like to create separate plots for each factor level in a file that a user inputs. This factor may have anywhere from 2 to 10+ levels. In the toy example this factor is plotGroup....
mikeHoncho's user avatar
5 votes
1 answer
307 views

R Shiny recoloring of points

I would like click-select points and group them based on color. I can save selected points with color information into a new data frame and plot it, however I would like to keep track and see what was ...
Hixon's user avatar
  • 89
1 vote
0 answers
122 views

app.R run app local host error resolved when published to shinyappio

I'm following Kunaal Naik's Shiny_Dashboards reactive example and tried reproducing a simpler data set, but I'm getting a mapping error, "Aesthetics must be either length 1 or the same as the ...
Doug Mounce's user avatar
1 vote
1 answer
1k views

Shiny plot not updating when inputs are changed

library(ggplot2) library(shiny) library(lubridate) movies = read.csv("/Users/michael/Desktop/stat 479 proj data/marvel_clean.csv") reviews = read.csv("/Users/michael/Desktop/stat 479 ...
Michael Visconti's user avatar
1 vote
0 answers
42 views

How can I make a plot reactive to a slider to change years in both extremes?

So I have a dataframe that has the information of how many accidents there were in a certain year and the amount that the insurance company had to pay each year. I've managed to create both plots (one ...
Rodrigo Morales's user avatar
3 votes
2 answers
660 views

ActionButton doesn't work properly after having click it and introduce user's input later in Shiny

I have created one app that it allows you to draw a plot. In order to show it, you need to click an actionButton. The idea is that every change you make in the plot will be changed after you have ...
emr2's user avatar
  • 1,660
0 votes
1 answer
117 views

Create dynamic barplot based on users input in Rshiny

I have a dataframe with several categorical variables. >library(vcd) >data(Arthritis) >colnames(Arthritis) "ID" "Treatment" "Sex" "Age" ...
RoyBatty's user avatar
  • 306
0 votes
0 answers
35 views

How to reorder bar graph by month? [duplicate]

I am new here and need some help! I am working on a shiny app for a class project and I am almost done with one of my tabs. I need help with sorting my bars. My bars are not in order by month, what I ...
Chris McManus's user avatar
0 votes
1 answer
270 views

Preventing double call to brush reactive in shiny?

I am using a brushed histogram to query samples in a shiny app. In my full application, I overlay a new histogram that highlights the selected region and update a DT data table showing properties of ...
Krisrs1128's user avatar
1 vote
1 answer
422 views

How to use the data rendered in output through DT::renderDataTable for plotting

I have created a datatable with renderDT and reactive functions, in order to change the table with selectInputs. Now I want to plot a geom_line graphic with the datatable created and have a reactive ...
Daniela saba rosner's user avatar
0 votes
0 answers
56 views

How can I make an interactive graph that changes based on parameters with R?

output$GraphPlot1 <- renderPlot({ par(fig=c(0.2,1,0,0.8), mar = c(2,0,0.1,2), new=TRUE) ggplot(table.years,aes(table.years[[2]],table.years[[1]]))+geom_line(color="blue", size = 1.5)+...
Lili's user avatar
  • 1
0 votes
1 answer
165 views

Density Plots in Shiny R not working as intended

I've been building my first applications in shiny in order to publish them and share interactive graphs with my coworkers. At present I've been producing density plots to map behaviour. The Goal is to ...
James's user avatar
  • 526
0 votes
1 answer
369 views

R Shiny: how to keep the width of the bars the same in ggplot2 even when changing the number of bars?

I have a pyramid ggplot in shiny where I can change the number of bars with select input. However, when I choose a small number, the width of the bars massively increases to fit the height of the plot....
newbie's user avatar
  • 21
0 votes
2 answers
271 views

Begginer in Shiny - Problems with ggplot geom_tile

I am triying to make a heatmap with ggplot and Shiny in R, but the plot is not shown as I expected. I'm using data which have a diffrent structure than Shiny-RStudio exemples and maybe that's why I ...
Sora's user avatar
  • 13

15 30 50 per page