in Education by
I create a plot_ly image using: MilesPlotly <- plot_ly(x = TripDetails$TotalDistanceMiles, type = "histogram") I then want to save it to an RData file to simply open it later (hence pre-compute) save(MilesPlotly, file = "my/path/here/myPlot.RData") Later on I want to simply plot it by doing load(my/path/here/myPlot.RData) MilesPlotly Now, this works on Mac. This does not work on my Ubuntu server on AWS. Does anyone have any ideas why the discrepancy? The plotly version on both is 3.6.0. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Your code doesn't work on my windows environment and plotly_build() solves it (I'm not sure this code works on your env). MilesPlotly <- plot_ly(x = TripDetails$TotalDistanceMiles, type = "histogram") MilesPlotly <- plotly_build(MilesPlotly) save(MilesPlotly, file = "my/path/here/myPlot.RData") load("my/path/here/myPlot.RData") MilesPlotly

Related questions

0 votes
    I create a plot_ly image using: MilesPlotly...
asked Jul 6, 2022 in Education by JackTerrance
0 votes
    Which of the following statement will load the objects to the file named mydata.RData ? (a) save( mydata ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    I am ploating simple linear regression plot in R and I want to save it as JPEG or PNG file, How can I do ... it is, Is it possible? Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    .RData extension used when we save data using the functions ___________ (a) save() (b) save.image() (c ... Operations of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    If I want to save a plot to a PDF file, which of the following is a correct way of doing that? (a) ... Data Analysis of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    .rda extension used when saving data with function __________ (a) save() (b) save.image() (c) save and ... Operations of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    I was trying to write a quick-and-dirty script to generate plots easily. For that, I was using the following code ( ... do I do that? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    ________ is used to create a plot to illustrate patterns of missing values. (a) ggmissplot (b) ggmissing (c ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which of the following creates a new ggplot plot from a data frame? (a) qplot_ggplot (b) ggplot.data. ... Analysis of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    In the base graphics system, which function is used to add elements to a plot? (a) Boxplot() (b) Text ... Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which of the following creates fluctuation plot? (a) ggmissplot (b) ggmissing (c) ggfluctuation (d) ggpcp The ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which of the following draws plot on current graphics device? (a) ggmissplot (b) printplot (c) print.ggplot ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which of the following is a plot to investigate the order in which observations were recorded? (a) ggplot (b ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which of the following functions is typically used to add elements to a plot in the base graphics system? (a ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Annotation of plots in any plotting system involves adding points, lines, or text to the plot, in addition to ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
...