Coder Social home page Coder Social logo

When ledgends are sorted by shape and colour on the same categorical variable the VI() description is long and repeditive about brailler HOT 1 CLOSED

ajrgodfrey avatar ajrgodfrey commented on September 28, 2024
When ledgends are sorted by shape and colour on the same categorical variable the VI() description is long and repeditive

from brailler.

Comments (1)

boringNectarine0 avatar boringNectarine0 commented on September 28, 2024

For example:

Iris<-ggplot(iris) +
geom_point(aes(y=Sepal.Width, x=Sepal.Length, shape=Species, col=Species))

VI(Iris) gives the description:

This is an untitled chart with no subtitle or caption.
It has x-axis 'Sepal.Length' with labels 5, 6, 7 and 8.
It has y-axis 'Sepal.Width' with labels 2.0, 2.5, 3.0, 3.5, 4.0 and 4.5.
There is a legend indicating shape is used to show Species, with 3 levels:
setosa shown as solid circle shape,
versicolor shown as solid triangle shape and
virginica shown as solid square shape.
There is a legend indicating colour is used to show Species, with 3 levels:
setosa shown as strong reddish orange colour,
versicolor shown as vivid yellowish green colour and
virginica shown as brilliant blue colour.
The chart is a set of 150 points.

Ideally this needs a total re-write to shorten it. The ideal shorter description would be similar to:

This is an untitled chart with no subtitle or caption.
It has x-axis 'Sepal.Length' with labels 5, 6, 7 and 8.
It has y-axis 'Sepal.Width' with labels 2.0, 2.5, 3.0, 3.5, 4.0 and 4.5.
There is a legend indicating shape and colour are used to show Species, with 3 levels:
setosa shown as strong reddish orange solid circle,
versicolor shown as vivid yellowish green solid triangle and
virginica shown as brilliant blue solid square.

This would take some work and new helper functions for checking for repeated categorical variables as well as possibly a function to ensure the colours/fill and shapes given in one sentence are in a logical order.

from brailler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.