Artificating when resizing scatter3D-Plot in R





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm using MacOS 10.14.1 Mojave, RStudio 1.1.643 and rgl package.



I'm trying to create a 3D-Plot of a multiple linear regression model in R for my statistics homework. The code itself is fine since the plot is displayed in the way I want it to. However, whenever I try to resize the window, the whole plot gets screwed.



Check below for some sample images:



So the scatter3D-plot is fine but a bit small



When I resize the image, this starts to happen:



The resized scatter3D-plot



Here's the code I use:



library(rgl)

# 3D-Plot
scatter3d(df_babies$wtMother, df_babies$wtBaby, df_babies$smoke,
xlab = "Weight Mother",
ylab = "Weight Baby",
zlab = "Smoke",
revolutions=5)


Note, that when I set revolutions to 1 the problem disappears. Still, it's a very strange problem and I couldn't find any solutions through Google-search. I have the feeling that the problem is connected to me updating to MacOS Mojave. Does anybody know a fix to this problem? The 3D-plot is run in XQuartz. I have updated XQuartz but without any improvements.










share|improve this question































    1















    I'm using MacOS 10.14.1 Mojave, RStudio 1.1.643 and rgl package.



    I'm trying to create a 3D-Plot of a multiple linear regression model in R for my statistics homework. The code itself is fine since the plot is displayed in the way I want it to. However, whenever I try to resize the window, the whole plot gets screwed.



    Check below for some sample images:



    So the scatter3D-plot is fine but a bit small



    When I resize the image, this starts to happen:



    The resized scatter3D-plot



    Here's the code I use:



    library(rgl)

    # 3D-Plot
    scatter3d(df_babies$wtMother, df_babies$wtBaby, df_babies$smoke,
    xlab = "Weight Mother",
    ylab = "Weight Baby",
    zlab = "Smoke",
    revolutions=5)


    Note, that when I set revolutions to 1 the problem disappears. Still, it's a very strange problem and I couldn't find any solutions through Google-search. I have the feeling that the problem is connected to me updating to MacOS Mojave. Does anybody know a fix to this problem? The 3D-plot is run in XQuartz. I have updated XQuartz but without any improvements.










    share|improve this question



























      1












      1








      1








      I'm using MacOS 10.14.1 Mojave, RStudio 1.1.643 and rgl package.



      I'm trying to create a 3D-Plot of a multiple linear regression model in R for my statistics homework. The code itself is fine since the plot is displayed in the way I want it to. However, whenever I try to resize the window, the whole plot gets screwed.



      Check below for some sample images:



      So the scatter3D-plot is fine but a bit small



      When I resize the image, this starts to happen:



      The resized scatter3D-plot



      Here's the code I use:



      library(rgl)

      # 3D-Plot
      scatter3d(df_babies$wtMother, df_babies$wtBaby, df_babies$smoke,
      xlab = "Weight Mother",
      ylab = "Weight Baby",
      zlab = "Smoke",
      revolutions=5)


      Note, that when I set revolutions to 1 the problem disappears. Still, it's a very strange problem and I couldn't find any solutions through Google-search. I have the feeling that the problem is connected to me updating to MacOS Mojave. Does anybody know a fix to this problem? The 3D-plot is run in XQuartz. I have updated XQuartz but without any improvements.










      share|improve this question
















      I'm using MacOS 10.14.1 Mojave, RStudio 1.1.643 and rgl package.



      I'm trying to create a 3D-Plot of a multiple linear regression model in R for my statistics homework. The code itself is fine since the plot is displayed in the way I want it to. However, whenever I try to resize the window, the whole plot gets screwed.



      Check below for some sample images:



      So the scatter3D-plot is fine but a bit small



      When I resize the image, this starts to happen:



      The resized scatter3D-plot



      Here's the code I use:



      library(rgl)

      # 3D-Plot
      scatter3d(df_babies$wtMother, df_babies$wtBaby, df_babies$smoke,
      xlab = "Weight Mother",
      ylab = "Weight Baby",
      zlab = "Smoke",
      revolutions=5)


      Note, that when I set revolutions to 1 the problem disappears. Still, it's a very strange problem and I couldn't find any solutions through Google-search. I have the feeling that the problem is connected to me updating to MacOS Mojave. Does anybody know a fix to this problem? The 3D-plot is run in XQuartz. I have updated XQuartz but without any improvements.







      macos r rstudio






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 7 at 13:54









      Blackwood

      2,89271728




      2,89271728










      asked Feb 7 at 10:43









      mangolassimangolassi

      62




      62






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403073%2fartificating-when-resizing-scatter3d-plot-in-r%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403073%2fartificating-when-resizing-scatter3d-plot-in-r%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Сан-Квентин

          8-я гвардейская общевойсковая армия

          Алькесар