Create a Scatter Plot

Create a Scatter Plot
Loading the math board and drawing, please wait…
2019-05-21 21:39
This example demonstrates how to create a scatter plot using GeoGebra. Core mathematical concepts include arithmetic mean, trigonometry, and limits. Commands such as Flatten, Point, Element are used to construct the scatter plot. Suitable for high school math education and learning.

GeoGebra Commands & Parameters

  1. Flatten(Sequence[Sequence[(i, j), i, 0, 10, 1], j, 0, 8, 1]) → gridSpace
  2. Point(Union[gridSpace, {homeBase}]) → E
  3. Point(Union[gridSpace, {homeBase}]) → D
  4. Point(Union[gridSpace, {homeBase}]) → C
  5. Point(Union[gridSpace, {homeBase}]) → B
  6. Element(questionList, questionListIndex) → questionNum
  7. Element(H2:H6, questionNum) → yInc
  8. Point(Union[gridSpace, {homeBase}]) → F
  9. Element(G2:G6, questionNum) → xInc
  10. Element(F2:F6, questionNum) → yVals
  11. Element(E2:E6, questionNum) → xVals
  12. Element(D2:D6, questionNum) → depVarWords
  13. Element(C2:C6, questionNum) → indepVarWords
  14. UnicodeToLetter(10007) → xmark
  15. UnicodeToLetter(10003) → cmark
  16. Point(Union[gridSpace, {homeBase}]) → A
  17. Zip((A / xInc, B / yInc), A, xVals, B, yVals) → correctPoints
  18. LaTeX((((("\text{" * QUESTION) * "\\") * INSTRUCTIONS) * "}")) → TEXT
  19. Element(B2:B6, questionNum) → dependentVariable
  20. Element(A2:A6, questionNum) → independentVariable
  21. Vector((0, 0), (0, 9)) → yAxisLine
  22. Vector((0, 0), (11, 0)) → xAxisLine
  23. Sequence(Segment[(-0.2, i), (0.2, i)], i, 1, 8) → yTicks
  24. Sequence(Segment[(i, -0.2), (i, 0.2)], i, 1, 10) → xTicks
  25. Sequence(i, i, xInc, (10 * xInc), xInc) → xTickLabels
  26. Sequence(i, i, yInc, (10 * yInc), yInc) → yTickLabels
  27. Sequence(Text[Element[xTickLabels, i], (i - 0.2, -0.7)], i, 1, 10) → xAxisTickLabels
  28. Sequence(Text[Element[yTickLabels, i], (-1, i - 0.2)], i, 1, 8) → yAxisTickLabels
  29. Polygon({(0, 0), (0, 9), (11, 9), (11, 0)}) → viewBox
  30. TableText({Join[{{(("\cellcolor{#ffcc80}{" * independentVariable) * "}")}, xVals}], Join[{{(("\cellcolor{#ffcc80}{" * dependentVariable) * "}")}, yVals}]}, "|_vc") → data
  31. Zip(Circle[A, 0.3], A, correctPoints) → correctCircles
  32. LaTeX("\text{Points to Plot:}") → pointsLabel
  33. Join({{LaTeX["\text{Choose a label}"]}, Shuffle[{dependentVariable, independentVariable}]}) → axesLabels
  34. SelectedElement(axesLabels) → selectedLabel
  35. RotateText(If[selectedLabel ≟ independentVariable, dependentVariable, If[selectedLabel ≟ dependentVariable, independentVariable, ""]], 90°) → otherLabel
  36. LaTeX((((((("\text{Since the " * indepVarWords) * " may cause\\the ") * depVarWords) * "\\to change, ") * indepVarWords) * " is the\\independent variable which is\\placed on the horizontal axis.}")) → feedbackLabels

AI Drawing Prompt Reference

Create a scatter plot with a coordinate grid, horizontal and vertical lines for axes, and tick marks with labels. Plot multiple points based on given x and y values, highlighting some with circles. Include axes, title, and explanatory text describing variable relationships and plotting purpose.
The prompt above was compiled from the original drawing commands and is for reference only.