How to use strings to specify plot axes in VegaLite.jl?

How can I use strings to call columns of a DataFrame in VegaLite.jl?

using DataFrames
using VegaLite

df = DataFrame("x" => 1:5, "y.α" => 1:5)
df |> @vlplot(
    :line, x = "x", y = "y.α"
)

ERROR: LoadError: ArgumentError: Invalid shortcut string

Doesn’t happen if the DataFrame column names do not contain the period:

df = DataFrame("x" => 1:5, "y" => 1:5)
df |> @vlplot(
    :line, x = "x", y = "y"
)

There is a related issue:

As described here

Notes: 1) Dots ( . ) and brackets ( [ and ] ) can be used to access nested objects … you can use \\ to escape dots and brackets …

Escaping doesn’t work.
I added this thread to the issue as related.

1 Like