RStudio suddenly stopped showing plots in the plot pane

后端 未结 8 1284
一生所求
一生所求 2021-02-04 03:59

RStudio is not showing the generated plots in the plot pane anymore. Instead they open in a separate file with the name "Quartz". Here\'s my session info.:



        
8条回答
  •  心在旅途
    2021-02-04 04:36

    I was able to visualize plots in the plot pane for a while before it vanished. All the attempts with the suggestions above failed. What is referred in the blog below got it working.

    https://datasciencelearner.wordpress.com/2014/08/17/my-plot-is-not-showing-up/

    The trick is to wrap the graphics command inside print function, for instance:

    print(
        plt2 <- ggplot(housing,
                   aes(x = Home.Value)) +
                      geom_histogram()
    )
    

提交回复
热议问题