Draw / rotate line in plots

JonesFox
JonesFox New Altair Community Member
edited November 2024 in Community Q&A
I want to evaluate the performance of my model by plotting the measured output variable on the X-axis and the prediction of the output variable on the Y-Axis. That, I can do with the normal scatter plot option. Additionally, I want a line (Ursprungsgerade) in an 45° angle to help me judge visually how far the predictions are from the optimal line. 
Here is a example how I did that using matplotlib.

How can I do that in RapidMiner? I only find the option to draw horizontal or vertical lines. In the following picture I drew a vertical line, but I want to rotate it..

Best Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi,
    I usually just add a line chart with mechanical_strength vs mechanical_strength, this is the straight line through the origin you search for.
    Best,
    Martin
  • JonesFox
    JonesFox New Altair Community Member
    Answer ✓
    Yes, thanks! That's a nice workaround I didn't think of. 

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi,
    I usually just add a line chart with mechanical_strength vs mechanical_strength, this is the straight line through the origin you search for.
    Best,
    Martin
  • JonesFox
    JonesFox New Altair Community Member
    Answer ✓
    Yes, thanks! That's a nice workaround I didn't think of.